Coinbase Derivatives API
cURL
curl --request GET \ --url https://api.exchange.fairx.net/rest/positions \ --header 'CB-ACCESS-KEY: <api-key>'
{ "Acme Trading": { "firm_name": "Acme Trading", "long_contribution": 100, "positions": { "BIPZ30": { "short_working_position": 0, "long_working_position": 0, "short_filled_position": 0, "symbol": "BIPZ30", "long_filled_position": 0, "total_futures_long_dollar_amount": 0, "total_futures_short_dollar_amount": 0, "initial_margin": "100" } }, "position_limit": "5000000", "short_contribution": 50 } }
Retrieves firm-level positions for all firms you have access to
The key string of the API key for the request
Filter positions by expiration status
NONE
TWO_WEEKS
TRADE_WEEK
NON_EXPIRED
IS_ACTIVE
Successfully retrieved positions
Show child attributes
Was this page helpful?