cURL
curl --request GET \ --url https://api.example.com/accounts/{account_id}/positions/{id} \ --header 'Authorization: Bearer <token>'
{ "id": "<string>", "account": "<string>", "status": "open", "instrument": { "id": "<string>", "name": "<string>", "symbol": "<string>", "instrument_type": "<unknown>", "trading_status": "buy_sell", "trading_increment": "<string>", "isin": "<string>", "issuer_country": "<string>", "issuer_credit_rating": "<string>", "minimum_trading_quantity": "<string>", "trading_currency": "EUR", "pro_traders_only": true, "maturity_date": "2023-12-25", "supports_automatic_rollover": true, "initial_auction_date": "2023-12-25", "initial_issue_date": "2023-12-25", "latest_auction_date": "2023-12-25", "latest_issue_date": "2023-12-25", "days_to_maturity": 123, "issuer": "<string>" }, "total": "<string>", "available_for_trading": "<string>", "settled": "<string>", "unsettled": "<string>", "reserved": "<string>", "automatic_rollover": true, "can_update_automatic_rollover": true, "average_price": "<string>", "most_recent_maturity_period": "<string>", "ytm": "<string>", "total_buy_trades": 123, "opened_at": "2023-11-07T05:31:56Z", "closed_at": "2023-11-07T05:31:56Z", "created_at": "2023-11-07T05:31:56Z", "modified_at": "2023-11-07T05:31:56Z", "automatic_rollover_cutoff": "2023-12-25" }
Retrieve a position within an account.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
OK
open
closing
closed
Show child attributes