curl --request GET \
--url https://api.prime.coinbase.com/v1/entities/{entity_id}/margin{
"margin_information": {
"margin_call_records": [
{
"margin_call_id": "e8bbed13-fa33-41de-86d5-4335d8f08122",
"initial_notional_amount": "123.45",
"outstanding_notional_amount": "122.45",
"created_at": "2023-01-01T00:00:00Z5",
"due_at": "2023-01-01T00:00:00.000Z"
}
],
"margin_summary": {
"entity_id": "e8bbed13-fa33-41de-86d5-4335d8f08166",
"margin_equity": "2539231.5903575355",
"margin_requirement": "15131.725279884091",
"excess_deficit": "2524099.865077651",
"pm_credit_consumed": "10000",
"tf_credit_limit": "2000000",
"tf_credit_consumed": "20000",
"tf_adjusted_asset_value": "40000",
"tf_adjusted_liability_value": "40000",
"tf_adjusted_credit_consumed": "30000",
"tf_adjusted_equity": "30000",
"frozen": false,
"tf_enabled": true,
"pm_enabled": true,
"market_rates": [
{
"symbol": "BTC",
"rate": "27,123"
}
],
"asset_balances": [
{
"portfolio_id": "e8bbed13-fa33-41de-86d5-4335d8f08166",
"symbol": "BTC",
"amount": "4000",
"notional_amount": "4000",
"conversion_rate": "1000"
}
],
"tf_loans": [
{
"portfolio_id": "e8bbed13-fa33-41de-86d5-4335d8f08166",
"symbol": "BTC",
"amount": "150000",
"notional_amount": "250000",
"due_date": "1000"
}
],
"pm_loans": [
{
"portfolio_id": "e8bbed13-fa33-41de-86d5-4335d8f08166",
"symbol": "BTC",
"amount": "150000",
"notional_amount": "250000",
"due_date": "1000"
}
],
"short_collateral": [
{
"portfolio_id": "e8bbed13-fa33-41de-86d5-4335d8f08166",
"symbol": "BTC",
"amount": "150000",
"notional_amount": "250000",
"due_date": "1000"
}
],
"pm_credit_limit": "1000000",
"pm_margin_limit": "200000",
"pm_margin_consumed": "5000"
}
}
}Gets real-time evaluation of the margin model based on current positions and spot rates.
curl --request GET \
--url https://api.prime.coinbase.com/v1/entities/{entity_id}/margin{
"margin_information": {
"margin_call_records": [
{
"margin_call_id": "e8bbed13-fa33-41de-86d5-4335d8f08122",
"initial_notional_amount": "123.45",
"outstanding_notional_amount": "122.45",
"created_at": "2023-01-01T00:00:00Z5",
"due_at": "2023-01-01T00:00:00.000Z"
}
],
"margin_summary": {
"entity_id": "e8bbed13-fa33-41de-86d5-4335d8f08166",
"margin_equity": "2539231.5903575355",
"margin_requirement": "15131.725279884091",
"excess_deficit": "2524099.865077651",
"pm_credit_consumed": "10000",
"tf_credit_limit": "2000000",
"tf_credit_consumed": "20000",
"tf_adjusted_asset_value": "40000",
"tf_adjusted_liability_value": "40000",
"tf_adjusted_credit_consumed": "30000",
"tf_adjusted_equity": "30000",
"frozen": false,
"tf_enabled": true,
"pm_enabled": true,
"market_rates": [
{
"symbol": "BTC",
"rate": "27,123"
}
],
"asset_balances": [
{
"portfolio_id": "e8bbed13-fa33-41de-86d5-4335d8f08166",
"symbol": "BTC",
"amount": "4000",
"notional_amount": "4000",
"conversion_rate": "1000"
}
],
"tf_loans": [
{
"portfolio_id": "e8bbed13-fa33-41de-86d5-4335d8f08166",
"symbol": "BTC",
"amount": "150000",
"notional_amount": "250000",
"due_date": "1000"
}
],
"pm_loans": [
{
"portfolio_id": "e8bbed13-fa33-41de-86d5-4335d8f08166",
"symbol": "BTC",
"amount": "150000",
"notional_amount": "250000",
"due_date": "1000"
}
],
"short_collateral": [
{
"portfolio_id": "e8bbed13-fa33-41de-86d5-4335d8f08166",
"symbol": "BTC",
"amount": "150000",
"notional_amount": "250000",
"due_date": "1000"
}
],
"pm_credit_limit": "1000000",
"pm_margin_limit": "200000",
"pm_margin_consumed": "5000"
}
}
}The unique ID of the entity
A successful response.
Show child attributes
The current margin call records
Show child attributes
The unique ID of the margin call
"e8bbed13-fa33-41de-86d5-4335d8f08122"
The initial margin call amount in notional value
"123.45"
The outstanding margin call amount in notional value
"122.45"
The time the margin call is created in RFC3330 format
"2023-01-01T00:00:00Z5"
The time the margin call is due in RFC3339 format
"2023-01-01T00:00:00.000Z"
Show child attributes
The unique ID of the entity
"e8bbed13-fa33-41de-86d5-4335d8f08166"
The margin equity at the entity level. Margin Equity = LMV + SMV + Trading Cash Balance + Short Collateral - Pending Withdrawals
"2539231.5903575355"
USD notional value of required equity in entity portfolios
"15131.725279884091"
margin_equity - margin_requirement
"2524099.865077651"
The raw amount of portfolio margin credit used
"10000"
The maximum trade finance credit limit. This field is deprecated and will be removed in the future.
"2000000"
The amount of trade finance credit used (USD). This field is deprecated and will be removed in the future.
"20000"
TF Asset Adjusted Value (USD). This field is deprecated and will be removed in the future.
"40000"
TF Adjusted Liability Value (USD). This field is deprecated and will be removed in the future.
"40000"
The amount of adjusted credit used. This field is deprecated and will be removed in the future.
"30000"
The amount of adjusted equity. This field is deprecated and will be removed in the future.
"30000"
Whether or not a entity is frozen due to balance outstanding or other reason
false
The reason why a entity is frozen
Whether TF is enabled for the entity. This field is deprecated and will be removed in the future.
true
Whether PM is enabled for the entity
true
Asset Balances across portfolios
Show child attributes
Trade finance debit loan amounts. This field is deprecated and will be removed in the future.
Show child attributes
Portfolio Margin debit loan amounts
Show child attributes
Short collateral amounts
Show child attributes
Gross market value (GMV) = LMV + Abs (SMV)
Net Market Value (NMV) = LMV + SMV
Long Market Value (LMV) = Sum of positive notional for all assets
Non_Marginable LMV: Sum of positive notional for each non-margin eligible coin
Short Market Value (SMV) = Sum of negative notional for each margin eligible coin
Gross Leverage = GMV / Margin Requirement
Net Exposure = (LMV + SMV) / GMV
Show child attributes
margin add on amount
MARGIN_ADD_ON_TYPE_UNSPECIFIED, SINGLE_COIN_STRESS, CONCENTRATION_STRESS, MACRO_STRESS, SHORT_BIASED_STRESS PM asset info netted across the entity
Show child attributes
The currency symbol
Nominal amount of the currency
Spot price for the currency
Notional amount of the currency
Asset tier of the currency
Whether the currency is margin eligible
Base margin requirement of the currency
Notional amount of the currency's base margin requirement
The 30d adv of the currency
Historic 5d volatility of the currency
Historic 30d volatility of the currency
Historic 90d volatility of the currency
Volatility margin addon of the currency position
Liquidity margin addon of the currency position
Total position margin of the currency
Nominal short position of the currency
Nominal long position of the currency
PM limit that monitors gross notional borrowings (crypto + fiat)
"1000000"
PM limit that monitors excess deficit
"200000"
The amount of the margin limit that is consumed by the excess deficit
"5000"
Was this page helpful?