New Endpoints: Positions
We are excited to announce the launch of our new suite of positions endpoints. Clients can now pull data related to open trades, in real-time. Open trades are trades where trade_state = active or accepted.
There are 2 variations and they differ based on whether a you are querying your positions across all platforms, or whether, as a Platform Operator, you are querying for the positions of your customers:
|GET /positions||Participant querying across multiple platforms|
|GET /positions/platform/:platform_code||Platform Operator querying for all customer positions within their platform|
Payload for Both
|platform_code||The code of the platform for the position|
|participant_code||The code of the participant that holds the position|
|asset||The asset code for the for the position, e.g.
|position_all_open_trades||The net position of all open trades in the asset, i.e. trades with a
|position_accepted_trades_only||The net position of all trades in the asset with a
|position_active_trades_only||The net position of all trades in the asset with a
Visit API Documentation for full set of endpoints with examples.