Coinbase Prime API
cURL
curl --request GET \ --url https://api.prime.coinbase.com/v1/entities/{entity_id}/futures/positions
{ "positions": [ { "product_id": "BTC-31JAN24-CDE", "number_of_contracts": "10", "daily_realized_pnl": "10.12", "unrealized_pnl": "10.12", "current_price": "10.12", "avg_entry_price": "10.12", "expiration_time": "2021-01-01T00:00:00.000Z" } ], "clearing_account_id": "CFS1234567" }
Retrieve all active fcm positions for a given entity.
Entity ID
Product ID. Optional
A successful response.
Show child attributes
Product ID
"BTC-31JAN24-CDE"
FCM_POSITION_SIDE_UNSPECIFIED
LONG
SHORT
Number of contracts
"10"
Daily realized PNL
"10.12"
Unrealized PNL
Current price of position
Average entry price
Expiration time of position
"2021-01-01T00:00:00.000Z"
Clearing account ID
"CFS1234567"
Was this page helpful?