Below are the available REST API endpoints for Fig Markets REST API
Fig Markets REST API (1.0)
Languages
Servers
Test API
https://api.test.figmarkets.com/v1/
Production API
https://api.figmarkets.com/v1/
- Test API
https://api.test.figmarkets.com/v1/account/exchange-credentials
- Production API
https://api.figmarkets.com/v1/account/exchange-credentials
- curl
- JavaScript
- Go
- Java
- Python
curl -i -X GET \
https://api.test.figmarkets.com/v1/account/exchange-credentialsResponse
application/json
[ { "alias": "DBT-main", "credentialsId": 1, "exchange": "Deribit", "exchangeId": 17, "exchangeShortCode": "DBT", "isExchangeDefault": true } ]
Request
Get a set of exchange credentials by ID.
The ID is the exchange credential's unique identifier.
You can find the ID in the response of the Get exchange credentials endpoint.
The response will include the decrypted exchange credentials.
- Test API
https://api.test.figmarkets.com/v1/account/exchange-credentials/{id}
- Production API
https://api.figmarkets.com/v1/account/exchange-credentials/{id}
- curl
- JavaScript
- Go
- Java
- Python
curl -i -X GET \
'https://api.test.figmarkets.com/v1/account/exchange-credentials/{id}'Response
application/json
{ "alias": "DBT-main", "clientId": "zAtLC8iG", "clientSecret": "CEXYHBPchiNcDEYxaFl7gIhA90gfebnyJ5NEjVmUDiI", "credentialsId": 1, "exchangeId": 17, "isExchangeDefault": true }
- Test API
https://api.test.figmarkets.com/v1/account/otc-counterparty
- Production API
https://api.figmarkets.com/v1/account/otc-counterparty
- curl
- JavaScript
- Go
- Java
- Python
curl -i -X GET \
https://api.test.figmarkets.com/v1/account/otc-counterpartyResponse
application/json
[ { "id": 12345, "name": "Counterparty X" } ]