Coinbase Prime API
cURL
curl --request GET \ --url https://api.prime.coinbase.com/v1/entities/{entity_id}/positions
{ "positions": [ { "symbol": "BTC", "long": "10", "short": "10", "position_reference": { "id": "e8bbed13-fa33-41de-86d5-4335d8f08166" } } ] }
List paginated positions for a specific entity.
The unique ID of the entity
Id to retrieve additional results strictly after
Number of items to retrieve
A successful response.
Show child attributes
Asset symbol
"BTC"
The long position based on 'reference' value
"10"
The short position based on 'reference' value
Reference ID
"e8bbed13-fa33-41de-86d5-4335d8f08166"
POSITION_REFERENCE_TYPE_UNSPECIFIED
ENTITY
PORTFOLIO
Cursor to navigate to next page
DESC
ASC
A boolean value indicating whether there are more items to paginate through
Was this page helpful?