Below are the available REST API endpoints for Fig Markets REST API
Fig Markets REST API (1.0)
https://api.test.figmarkets.com/v1/
https://api.figmarkets.com/v1/
Request
Create multiple block trades via a single request.
For each block trade you need to supply the exchange credentials to use for the maker and taker side of the block trade. The credentials must be for the same exchange and should be allowed to block trade without any additional confirmations.
Each block trade must contain a unique nonce.
The direction of the instruments in each trade must be set to the direction expected by the maker.
Note that each block trade is executed independently, so if one fails, the others will still be executed.
Bulk block trade creation request
Timestamp for the block trade (unix timestamp in milliseconds)
Array of block trades
The alias of the exchange credentials to use for the maker side of the block trade
The alias of the exchange credentials to use for the taker side of the block trade
- Test API
https://api.test.figmarkets.com/v1/block-trade/bulk
- Production API
https://api.figmarkets.com/v1/block-trade/bulk
- curl
- JavaScript
- Go
- Java
- Python
curl -i -X POST \
https://api.test.figmarkets.com/v1/block-trade/bulk \
-H 'Content-Type: application/json' \
-d '{
"timestamp": 1756802862567,
"blockTrades": [
{
"nonce": "fe4a5ef4-5420-48e0-af31-08487d931d28",
"makerExchangeCredentials": "DBT-main",
"takerExchangeCredentials": "DBT-secondary",
"trades": [
{
"direction": "buy",
"instrumentName": "BTC-31DEC25-120000-C",
"price": 0.025,
"amount": 25
}
]
}
]
}'List of responses for each of the block trades in the request
The Fig Markets unique identifier for the block trade. Only returned if the block trade was executed successfully.
The nonce that was provided with the request for the specific block trade
If the trade was executed successfully, this will be the response provided by the exchange where the block trade is executed
If the exchange returns an error it will be returned here. The format will be the same as the error response from the exchange
[ { "blockTradeId": 1234, "nonce": "fe4a5ef4-5420-48e0-af31-08487d931d28", "exchangeResult": {}, "exchangeError": {} } ]