# Fig Markets REST API Below are the available REST API endpoints for Fig Markets REST API Version: 1.0 ## Servers Test API ``` https://api.test.figmarkets.com/v1 ``` Production API ``` https://api.figmarkets.com/v1 ``` ## Security ### BearerAuth Bearer token authentication Type: apiKey In: header Name: Authorization ## Download OpenAPI description [Fig Markets REST API](https://docs.figmarkets.com/_spec/apis/rest/openapi-modular.yaml) ## Account Account endpoints ### /account/exchange-credentials - [GET /account/exchange-credentials](https://docs.figmarkets.com/apis/rest/openapi-modular/account/getexchangecredentials.md): Get a list of the exchange credentials set up on your account. ### /account/exchange-credentials/{id} - [GET /account/exchange-credentials/{id}](https://docs.figmarkets.com/apis/rest/openapi-modular/account/getexchangecredentialsbyid.md): 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 exchange credentials. ### /account/otc-counterparty - [GET /account/otc-counterparty](https://docs.figmarkets.com/apis/rest/openapi-modular/account/getotccounterparties.md): Get a list of the OTC counterparties set up on your account. ## Block Trade Block trade endpoints ### /block-trade/bulk - [POST /block-trade/bulk](https://docs.figmarkets.com/apis/rest/openapi-modular/block-trade/createbulkblocktrade.md): Create multiple block trades via a single request. For each block trade you need to supply the exchange credentials to use for the and 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 . The direction of the instruments in each trade must be set to the direction expected by the . ## Exchange Exchange endpoints ### /exchange/maker - [GET /exchange/maker](https://docs.figmarkets.com/apis/rest/openapi-modular/exchange/getexchangemakers.md): Fetch a list of Fig Makers. For each maker, the endpoint returns their maker ID and the settlement options the maker is currently able to trade through. ## RFQs RFQ endpoints ### /rfq - [GET /rfq](https://docs.figmarkets.com/apis/rest/openapi-modular/rfq/getrfqs.md): Get all RFQs with optional filtering and pagination ### /rfq/{id} - [GET /rfq/{id}](https://docs.figmarkets.com/apis/rest/openapi-modular/rfq/getrfqbyid.md): Get an RFQ by ID ### /rfq - [POST /rfq/{id}](https://docs.figmarkets.com/apis/rest/openapi-modular/rfq/createrfq.md): Create a new RFQ ### /rfq/{id} - [DELETE /rfq/{id}](https://docs.figmarkets.com/apis/rest/openapi-modular/rfq/deleterfq.md): Delete an existing RFQ ### /rfq/{id}/quote - [GET /rfq/{id}/quote](https://docs.figmarkets.com/apis/rest/openapi-modular/rfq/getrfqquotesastaker.md): Get quotes for a specific RFQ where you are the taker ### /rfq/cancel - [POST /rfq/cancel](https://docs.figmarkets.com/apis/rest/openapi-modular/rfq/cancelrfq.md): Cancel an existing RFQ using the RFQ's ID ### /rfq/trade - [POST /rfq/trade](https://docs.figmarkets.com/apis/rest/openapi-modular/rfq/traderfq.md): Accept a quote and trade the RFQ ### /rfq/quote - [GET /rfq/quotes](https://docs.figmarkets.com/apis/rest/openapi-modular/rfq/getrfqquotes.md): Get a list of all the quotes where you are the maker ### /rfq/quote - [POST /rfq/quote](https://docs.figmarkets.com/apis/rest/openapi-modular/rfq/createrfqquote.md): Create a new quote against an existing RFQ. The RFQ must be in the state and the leg and hedge information must be set and match that of the RFQ being quoted against. You can use the Calculate leg prices endpoint to help you get the leg prices for your quote. ### /rfq/quote - [PUT /rfq/quote](https://docs.figmarkets.com/apis/rest/openapi-modular/rfq/updaterfqquote.md): Update an existing quote ### /rfq/quote - [DELETE /rfq/quote](https://docs.figmarkets.com/apis/rest/openapi-modular/rfq/deleterfqquote.md): Delete an existing quote. You can delete quotes either by passing the of the quote or the you provided when you created the quote. ### /rfq/quote/cancel-all - [POST /rfq/quote/cancel-all](https://docs.figmarkets.com/apis/rest/openapi-modular/rfq/cancelallrfqquotes.md): Cancel all quotes, optionally filtered by RFQ ID. If is provided, only quotes for that RFQ will be cancelled. If is not provided, all quotes will be cancelled. ### /rfq/leg-prices - [POST /rfq/leg-prices](https://docs.figmarkets.com/apis/rest/openapi-modular/rfq/calculatelegprices.md): Calculate leg prices for an RFQ structure