Skip to main content

Balances

CHANNEL

wss://futures.kraken.com/ws/v1

balances

This feed returns balance information for holding wallets, single collateral wallets and multi-collateral wallets.

Request

MESSAGE BODY

event string required
subscribe or unsubscribe
feed string required
The requested subscription feed balances
api_key string required
The user api key
original_challenge string required
The message that is received from a challenge request
signed_challenge string required
The signed challenge message with user api secret

Response Success

MESSAGE BODY

event string
The result, subscribed or subscribed_failed or unsubscribed or unsubscribed_failed
feed string
The requested subscription feed balances
api_key string
The user api key
original_challenge string
The message that is received from a challenge request
signed_challenge string
The signed challenge message with user api secret

Balances Snapshot

MESSAGE BODY

feed string
The subscribed feed
account string
The user account
timestamp positive integer
The unix timestamp of the balance state in milliseconds.
seq positive integer
The subscription message sequence number.
holding map of floats
A map from currency names to balance quantity
name string
The name of the account.
pair string
The wallet currency pair.
unit string
The wallet settlement unit.
portfolio_value float
The current balance with haircuts and any unrealized margin from open positions in settlement units.
balance float
The current balance in settlement units.
maintenance_margin positive float
The maintenance margin for open positions.
initial_margin float
The initial margin for open positions and open orders.
available float
The current portfolio value minus initial margin.
unrealized_funding positive float
The total unrealized funding for open positions.
pnl positive float
The total profit and loss for open positions.
futures map of structures
A map from single collateral wallet names to collateral wallet structure
name string
The name of the account.
pair string
The wallet currency pair.
unit string
The wallet settlement unit.
portfolio_value float
The current balance with haircuts and any unrealized margin from open positions in settlement units.
balance float
The current balance in settlement units.
maintenance_margin positive float
The maintenance margin for open positions.
initial_margin float
The initial margin for open positions and open orders.
available float
The current portfolio value minus initial margin.
unrealized_funding positive float
The total unrealized funding for open positions.
pnl positive float
The total profit and loss for open positions.
flex_futures structure
The multi-collateral wallet structure
balance_value float
The current USD balance of the account.
portfolio_value float
The current collateral value with unrealized margin from any open positions.
collateral_value float
The current USD balance with haircuts.
initial_margin float
The total initial margin for open positions and open orders.
initial_margin_without_orders float
The total initial margin for open positions.
maintenance_margin float
The total maintenance margin for open positions.
pnl float
The total profit and loss for open positions.
unrealized_funding float
The total unrealized funding for open positions.
total_unrealized float
The total unrealized funding and pnl.
total_unrealized_as_margin float
The total unrealized in USD.
margin_equity float
The current collateral value and unrealized margin.
available_margin float
The margin equity minus initial margin.
currencies map of structures
A map from collateral wallet names to collateral wallet structure
quantity float
The currency quantity.
value float
The USD value of the currency balance.
collateral_value float
The current USD balance with haircuts.
available float
The total available margin valued in the wallet currency.
haircut float
The rate of reduction in the value of a collateral asset that may be used as margin.
conversion_spread float
The conversion spread is used to calculate conversion fee for multi-collateral wallets.
isolated map of structures
A map from collateral wallet names to collateral wallet structure
initial_margin float
Initial margin for any position plus open orders.
initial_margin_without_orders float
Initial margin for any position.
maintenance_margin float
Maintenance margin for any position.
pnl float
Total profit and loss for any position.
unrealized_funding float
Unrealized funding for any position.
total_unrealized float
Unrealized funding plus pnl.
total_unrealized_as_margin float
Total unrealized as USD.
cross map of structures
The current margin information for cross position(s)
initial_margin float
Initial margin for all positions plus open orders.
initial_margin_without_orders float
Initial margin for all position.
maintenance_margin float
Maintenance margin for all position.
pnl float
Total profit and loss for all position.
unrealized_funding float
Unrealized funding for all position.
total_unrealized float
Unrealized funding plus pnl.
total_unrealized_as_margin float
Total unrealized as USD.
balance_value float
Total USD balance minus initial margin of isolated positions.
collateral_value float
USD balance, but with haircuts applied.
portfolio_value float
USD balance plus total unrealized.
margin_equity float
Collateral value plus total unrealized.
available_margin float
Margin equity minus initial margin of cross and isolated positions.
effective_leverage float
Ratio of position size to margin equity.

Balances Delta

MESSAGE BODY

feed string
The subscribed feed
account string
The user account
timestamp positive integer
The unix timestamp of the balance state in milliseconds.
seq positive integer
The subscription message sequence number.
holding optional map of float
A map from currency names to balance quantity
name string
The name of the account.
pair string
The wallet currency pair.
unit string
The wallet settlement unit.
portfolio_value float
The current balance with haircuts and any unrealized margin from open positions in settlement units.
balance float
The current balance in settlement units.
maintenance_margin positive float
The maintenance margin for open positions.
initial_margin float
The initial margin for open positions and open orders.
available float
The current portfolio value minus initial margin.
unrealized_funding positive float
The total unrealized funding for open positions.
pnl positive float
The total profit and loss for open positions.
futures optional map of structures
A map from single collateral wallet names to collateral wallet structure
name string
The name of the account.
pair string
The wallet currency pair.
unit string
The wallet settlement unit.
portfolio_value float
The current balance with haircuts and any unrealized margin from open positions in settlement units.
balance float
The current balance in settlement units.
maintenance_margin positive float
The maintenance margin for open positions.
initial_margin float
The initial margin for open positions and open orders.
available float
The current portfolio value minus initial margin.
unrealized_funding positive float
The total unrealized funding for open positions.
pnl positive float
The total profit and loss for open positions.
flex_futures optional structure
The multi-collateral wallet structure
balance_value float
The current USD balance of the account.
portfolio_value float
The current collateral value with unrealized margin from any open positions.
collateral_value float
The current USD balance with haircuts.
initial_margin float
The total initial margin for open positions and open orders.
initial_margin_without_orders float
The total initial margin for open positions.
maintenance_margin float
The total maintenance margin for open positions.
pnl float
The total profit and loss for open positions.
unrealized_funding float
The total unrealized funding for open positions.
total_unrealized float
The total unrealized funding and pnl.
total_unrealized_as_margin float
The total unrealized in USD.
margin_equity float
The current collateral value and unrealized margin.
available_margin float
The margin equity minus initial margin.
currencies map of structures
A map from collateral wallet names to collateral wallet structure
quantity float
The currency quantity.
value float
The USD value of the currency balance.
collateral_value float
The current USD balance with haircuts.
available float
The total available margin valued in the wallet currency.
haircut float
The rate of reduction in the value of a collateral asset that may be used as margin.
conversion_spread float
The conversion spread is used to calculate conversion fee for multi-collateral wallets.
isolated map of structures
A map from collateral wallet names to collateral wallet structure
initial_margin float
Initial margin for any position plus open orders.
initial_margin_without_orders float
Initial margin for any position.
maintenance_margin float
Maintenance margin for any position.
pnl float
Total profit and loss for any position.
unrealized_funding float
Unrealized funding for any position.
total_unrealized float
Unrealized funding plus pnl.
total_unrealized_as_margin float
Total unrealized as USD.
cross map of structures
The current margin information for cross position(s)
initial_margin float
Initial margin for all positions plus open orders.
initial_margin_without_orders float
Initial margin for all position.
maintenance_margin float
Maintenance margin for all position.
pnl float
Total profit and loss for all position.
unrealized_funding float
Unrealized funding for all position.
total_unrealized float
Unrealized funding plus pnl.
total_unrealized_as_margin float
Total unrealized as USD.
balance_value float
Total USD balance minus initial margin of isolated positions.
collateral_value float
USD balance, but with haircuts applied.
portfolio_value float
USD balance plus total unrealized.
margin_equity float
Collateral value plus total unrealized.
available_margin float
Margin equity minus initial margin of cross and isolated positions.
effective_leverage float
Ratio of position size to margin equity.

Response Error

MESSAGE BODY

event string
Always error
message string
An error message out of:
Invalid feed
Json Error