/** * Fireblocks API * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) * * The version of the OpenAPI document: 1.6.2 * Contact: developers@fireblocks.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { Configuration } from '../configuration'; import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import { RequestArgs, BaseAPI } from '../base'; import { CreateOffersRequest } from '../models'; import { CreateOrderRequest } from '../models'; import { CreateQuote } from '../models'; import { GetOrdersResponse } from '../models'; import { OffersResponse } from '../models'; import { OrderDetails } from '../models'; import { OrderRequirementDetails } from '../models'; import { OrderStatus } from '../models'; import { ProvidersListResponse } from '../models'; import { QuotesResponse } from '../models'; import { RatesRequest } from '../models'; import { RatesResponse } from '../models'; import { SubmitOrderRequirementRequest } from '../models'; import { TradeClass } from '../models'; import { TradingPairSide } from '../models'; import { TradingPairsListPage } from '../models'; import { TradingProvider } from '../models'; import { TransferRail } from '../models'; /** * TradingApi - axios parameter creator * @export */ export declare const TradingApiAxiosParamCreator: (configuration?: Configuration) => { /** * Create an order to buy or sell an asset. If no source is given, an external source will be use. Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Editor. For detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes). * @summary Create an order * @param {CreateOrderRequest} createOrderRequest * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createOrder: (createOrderRequest: CreateOrderRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig) => Promise; /** * Generate a time-limited quote for asset conversion, providing exchange rate and amount calculations. If `side` is omitted it defaults to `SELL`. Use `side: BOTH` to get quotes for each side the provider supports in a single call; providers that support only one side return that side only. Every returned quote carries a concrete `BUY` or `SELL` side, never `BOTH`. Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Editor. For detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes). * @summary Create a quote * @param {CreateQuote} createQuote * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createQuote: (createQuote: CreateQuote, idempotencyKey?: string, options?: RawAxiosRequestConfig) => Promise; /** * Retrieve all available offers across the workspace for a given asset pair. Always operates in open scope — no provider or account selection required. Returns a mix of indicative rates and committed quotes as applicable per provider. If `side` is omitted it defaults to `SELL`. Use `side: BOTH` to get offers for each side the provider supports in a single call; providers that support only one side return that side only. Every returned offer carries a concrete `BUY` or `SELL` side, never `BOTH`. If no slippageBps is provided, it defaults to 50 bps (0.5%). Slippage and settlement configuration do not affect the returned rate. Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Editor. For detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes). * @summary Get all offers * @param {CreateOffersRequest} createOffersRequest * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ fetchAllOffers: (createOffersRequest: CreateOffersRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig) => Promise; /** * Retrieve indicative exchange rate from specified providers for a given asset pair. Rates are non-executable price signals intended for discovery and display purposes. If `side` is omitted it defaults to `SELL`. Use `side: BOTH` to get rates for each side the provider supports in a single call; providers that support only one side return that side only. Every returned rate carries a concrete `BUY` or `SELL` side, never `BOTH`. Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. For detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes). * @summary Get rates * @param {RatesRequest} ratesRequest * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ fetchRates: (ratesRequest: RatesRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig) => Promise; /** * Retrieve detailed information about a specific order by its ID. Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. For detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes). * @summary Get order details * @param {string} orderId The ID of the order to fetch. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getOrder: (orderId: string, options?: RawAxiosRequestConfig) => Promise; /** * Fetch order requirement details for an order that is in `AWAITING_INFORMATION` status. The response includes `requirementId` and `dueBy` metadata, a `requiredData` JSON Schema (Draft-7) describing the shape of the `data` object expected on `POST /trading/orders/{orderId}/requirement/data`, and `requiredFiles` descriptors for any files the provider requires (uploaded via `POST /trading/orders/{orderId}/requirement/file`). Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. For detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes). * @summary Get order requirement details for an order * @param {string} orderId The ID of the order for which the order requirement is issued. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getOrderRequirements: (orderId: string, options?: RawAxiosRequestConfig) => Promise; /** * Retrieve a paginated list of orders with optional filtering by account, provider, status, and time range. Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. For detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes). * @summary Get orders * @param {number} pageSize pageSize for pagination. * @param {string} [pageCursor] * @param {GetOrdersOrderEnum} [order] ASC / DESC ordering (default DESC) * @param {Array} [accountId] Filter by accountId. * @param {Array} [providerId] Filter by providerId. * @param {Array} [statuses] Filter by order status. * @param {number} [startTime] * @param {number} [endTime] * @param {GetOrdersAssetConversionTypeEnum} [assetConversionType] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getOrders: (pageSize: number, pageCursor?: string, order?: GetOrdersOrderEnum, accountId?: Array, providerId?: Array, statuses?: Array, startTime?: number, endTime?: number, assetConversionType?: GetOrdersAssetConversionTypeEnum, options?: RawAxiosRequestConfig) => Promise; /** * Retrieve the base/quote trading pairs supported by the tenant\'s trading providers. All filters are optional and combined with AND. A provider can return several rows for one pair, one per side and per connected account, each with its own `tradeClass`. Rows may use the wildcard `*` asset ID or the `BOTH` side and are returned unexpanded (see the `baseAsset`, `side` and `baseChain` filters for how they match). **Examples** - Which providers support ETH/USDC: `?baseAsset=ETH"eAsset=USDC`. Add `providerId` to check one provider; an empty `data` array means it does not support the pair. - All pairs of one account: `?providerId=ACME&accountId=`. Page through large results with `pageSize` and `pageCursor`. - Everything you can buy with euro: `?baseAsset=EUR&tradeClass=ON_RAMP`. **Endpoint Permission:** Owner, Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. For detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes). * @summary Get trading pairs * @param {string} [baseAsset] Filter by base asset ID. Also matches `*` rows on the chain of this asset. * @param {string} [quoteAsset] Filter by quote asset ID. Also matches `*` rows on the chain of this asset. * @param {string} [baseChain] Filter by base asset blockchain `legacyId` (e.g. `ETH`, `BASECHAIN_ETH`, `SOL`). Matches both concrete-asset rows and `*` rows on that chain. * @param {string} [quoteChain] Filter by quote asset blockchain `legacyId` (e.g. `ETH`, `BASECHAIN_ETH`, `SOL`). Matches both concrete-asset rows and `*` rows on that chain. * @param {TransferRail} [baseRail] Filter by base asset transfer rail. * @param {TransferRail} [quoteRail] Filter by quote asset transfer rail. * @param {TradingPairSide} [side] Filter by trading side. `BUY` or `SELL` also matches rows whose side is `BOTH`; `BOTH` matches rows of any side. * @param {TradeClass} [tradeClass] Filter by trade class. * @param {Array} [providerId] Filter by provider ID. Repeat the parameter to match any of several providers, up to 50. * @param {Array} [accountId] Filter by connected account ID. Repeat the parameter to match any of several accounts, up to 50. * @param {boolean} [prefunded] Filter by whether the pair requires prefunding. * @param {string} [min] An order-size filter, not a bound on the result. Only returns pairs whose own `min` field (the smallest base-asset amount the pair accepts) is at most this value, i.e. pairs that can serve an order of this size. For example, `min=10` returns pairs with a `min` of 10 or less. * @param {string} [max] An order-size filter, not a bound on the result. Only returns pairs whose own `max` field (the largest base-asset amount the pair accepts) is at least this value. For example, `max=1000` returns pairs with a `max` of 1000 or more. * @param {number} [pageSize] Page size for pagination. * @param {string} [pageCursor] Page cursor for pagination. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTradingPairs: (baseAsset?: string, quoteAsset?: string, baseChain?: string, quoteChain?: string, baseRail?: TransferRail, quoteRail?: TransferRail, side?: TradingPairSide, tradeClass?: TradeClass, providerId?: Array, accountId?: Array, prefunded?: boolean, min?: string, max?: string, pageSize?: number, pageCursor?: string, options?: RawAxiosRequestConfig) => Promise; /** * Retrieve a single provider by ID. **Endpoint Permission:** Owner, Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. For detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes). * @summary Get trading provider by ID * @param {string} providerId The unique identifier of the provider. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTradingProviderById: (providerId: string, options?: RawAxiosRequestConfig) => Promise; /** * Retrieve a list of all available external providers supporting trading activities through the platform. **Endpoint Permission:** Owner, Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. For detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes). * @summary Get providers * @param {number} [pageSize] Page size for pagination. * @param {string} [pageCursor] Page cursor for pagination. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTradingProviders: (pageSize?: number, pageCursor?: string, options?: RawAxiosRequestConfig) => Promise; /** * Submit the user\'s textual response to an order requirement on an order that is in `AWAITING_INFORMATION` status. The request body carries `data` — a free-form object conforming to the `requiredData` JSON Schema returned by the GET endpoint. Any required files are uploaded separately via `POST /trading/orders/{orderId}/requirement/file`. Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Editor. For detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes). * @summary Submit a response to an order requirement * @param {SubmitOrderRequirementRequest} submitOrderRequirementRequest * @param {string} orderId The ID of the order to submit the order requirement response for. * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ submitOrderRequirements: (submitOrderRequirementRequest: SubmitOrderRequirementRequest, orderId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig) => Promise; /** * Upload a single file (multipart/form-data) in response to an order requirement on an order that is in `AWAITING_INFORMATION` status. Call this endpoint once per required file. Send `fileKey` (matching a `fileKey` from `requiredFiles` on the GET response) and the binary `file`. Its type must be one of the supported file formats. Fireblocks encrypts each file and uploads it individually to the underlying provider. The textual response is submitted separately via `POST /trading/orders/{orderId}/requirement/data`. Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Editor. For detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes). * @summary Upload a file for an order requirement * @param {string} fileKey Identifier of the required file this upload satisfies. Must match a `fileKey` from `requiredFiles` on the GET response. * @param {File} file The binary file content. The file\\\'s type must be one of the supported OrderRequirementAllowedFileType values; the file name and type are derived from the uploaded part. * @param {string} orderId The ID of the order to upload the order requirement file for. * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ uploadOrderRequirementFile: (fileKey: string, file: File, orderId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig) => Promise; }; /** * TradingApi - functional programming interface * @export */ export declare const TradingApiFp: (configuration?: Configuration) => { /** * Create an order to buy or sell an asset. If no source is given, an external source will be use. Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Editor. For detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes). * @summary Create an order * @param {CreateOrderRequest} createOrderRequest * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createOrder(createOrderRequest: CreateOrderRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Generate a time-limited quote for asset conversion, providing exchange rate and amount calculations. If `side` is omitted it defaults to `SELL`. Use `side: BOTH` to get quotes for each side the provider supports in a single call; providers that support only one side return that side only. Every returned quote carries a concrete `BUY` or `SELL` side, never `BOTH`. Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Editor. For detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes). * @summary Create a quote * @param {CreateQuote} createQuote * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createQuote(createQuote: CreateQuote, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Retrieve all available offers across the workspace for a given asset pair. Always operates in open scope — no provider or account selection required. Returns a mix of indicative rates and committed quotes as applicable per provider. If `side` is omitted it defaults to `SELL`. Use `side: BOTH` to get offers for each side the provider supports in a single call; providers that support only one side return that side only. Every returned offer carries a concrete `BUY` or `SELL` side, never `BOTH`. If no slippageBps is provided, it defaults to 50 bps (0.5%). Slippage and settlement configuration do not affect the returned rate. Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Editor. For detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes). * @summary Get all offers * @param {CreateOffersRequest} createOffersRequest * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ fetchAllOffers(createOffersRequest: CreateOffersRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Retrieve indicative exchange rate from specified providers for a given asset pair. Rates are non-executable price signals intended for discovery and display purposes. If `side` is omitted it defaults to `SELL`. Use `side: BOTH` to get rates for each side the provider supports in a single call; providers that support only one side return that side only. Every returned rate carries a concrete `BUY` or `SELL` side, never `BOTH`. Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. For detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes). * @summary Get rates * @param {RatesRequest} ratesRequest * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ fetchRates(ratesRequest: RatesRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Retrieve detailed information about a specific order by its ID. Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. For detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes). * @summary Get order details * @param {string} orderId The ID of the order to fetch. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getOrder(orderId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Fetch order requirement details for an order that is in `AWAITING_INFORMATION` status. The response includes `requirementId` and `dueBy` metadata, a `requiredData` JSON Schema (Draft-7) describing the shape of the `data` object expected on `POST /trading/orders/{orderId}/requirement/data`, and `requiredFiles` descriptors for any files the provider requires (uploaded via `POST /trading/orders/{orderId}/requirement/file`). Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. For detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes). * @summary Get order requirement details for an order * @param {string} orderId The ID of the order for which the order requirement is issued. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getOrderRequirements(orderId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Retrieve a paginated list of orders with optional filtering by account, provider, status, and time range. Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. For detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes). * @summary Get orders * @param {number} pageSize pageSize for pagination. * @param {string} [pageCursor] * @param {GetOrdersOrderEnum} [order] ASC / DESC ordering (default DESC) * @param {Array} [accountId] Filter by accountId. * @param {Array} [providerId] Filter by providerId. * @param {Array} [statuses] Filter by order status. * @param {number} [startTime] * @param {number} [endTime] * @param {GetOrdersAssetConversionTypeEnum} [assetConversionType] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getOrders(pageSize: number, pageCursor?: string, order?: GetOrdersOrderEnum, accountId?: Array, providerId?: Array, statuses?: Array, startTime?: number, endTime?: number, assetConversionType?: GetOrdersAssetConversionTypeEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Retrieve the base/quote trading pairs supported by the tenant\'s trading providers. All filters are optional and combined with AND. A provider can return several rows for one pair, one per side and per connected account, each with its own `tradeClass`. Rows may use the wildcard `*` asset ID or the `BOTH` side and are returned unexpanded (see the `baseAsset`, `side` and `baseChain` filters for how they match). **Examples** - Which providers support ETH/USDC: `?baseAsset=ETH"eAsset=USDC`. Add `providerId` to check one provider; an empty `data` array means it does not support the pair. - All pairs of one account: `?providerId=ACME&accountId=`. Page through large results with `pageSize` and `pageCursor`. - Everything you can buy with euro: `?baseAsset=EUR&tradeClass=ON_RAMP`. **Endpoint Permission:** Owner, Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. For detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes). * @summary Get trading pairs * @param {string} [baseAsset] Filter by base asset ID. Also matches `*` rows on the chain of this asset. * @param {string} [quoteAsset] Filter by quote asset ID. Also matches `*` rows on the chain of this asset. * @param {string} [baseChain] Filter by base asset blockchain `legacyId` (e.g. `ETH`, `BASECHAIN_ETH`, `SOL`). Matches both concrete-asset rows and `*` rows on that chain. * @param {string} [quoteChain] Filter by quote asset blockchain `legacyId` (e.g. `ETH`, `BASECHAIN_ETH`, `SOL`). Matches both concrete-asset rows and `*` rows on that chain. * @param {TransferRail} [baseRail] Filter by base asset transfer rail. * @param {TransferRail} [quoteRail] Filter by quote asset transfer rail. * @param {TradingPairSide} [side] Filter by trading side. `BUY` or `SELL` also matches rows whose side is `BOTH`; `BOTH` matches rows of any side. * @param {TradeClass} [tradeClass] Filter by trade class. * @param {Array} [providerId] Filter by provider ID. Repeat the parameter to match any of several providers, up to 50. * @param {Array} [accountId] Filter by connected account ID. Repeat the parameter to match any of several accounts, up to 50. * @param {boolean} [prefunded] Filter by whether the pair requires prefunding. * @param {string} [min] An order-size filter, not a bound on the result. Only returns pairs whose own `min` field (the smallest base-asset amount the pair accepts) is at most this value, i.e. pairs that can serve an order of this size. For example, `min=10` returns pairs with a `min` of 10 or less. * @param {string} [max] An order-size filter, not a bound on the result. Only returns pairs whose own `max` field (the largest base-asset amount the pair accepts) is at least this value. For example, `max=1000` returns pairs with a `max` of 1000 or more. * @param {number} [pageSize] Page size for pagination. * @param {string} [pageCursor] Page cursor for pagination. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTradingPairs(baseAsset?: string, quoteAsset?: string, baseChain?: string, quoteChain?: string, baseRail?: TransferRail, quoteRail?: TransferRail, side?: TradingPairSide, tradeClass?: TradeClass, providerId?: Array, accountId?: Array, prefunded?: boolean, min?: string, max?: string, pageSize?: number, pageCursor?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Retrieve a single provider by ID. **Endpoint Permission:** Owner, Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. For detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes). * @summary Get trading provider by ID * @param {string} providerId The unique identifier of the provider. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTradingProviderById(providerId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Retrieve a list of all available external providers supporting trading activities through the platform. **Endpoint Permission:** Owner, Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. For detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes). * @summary Get providers * @param {number} [pageSize] Page size for pagination. * @param {string} [pageCursor] Page cursor for pagination. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTradingProviders(pageSize?: number, pageCursor?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Submit the user\'s textual response to an order requirement on an order that is in `AWAITING_INFORMATION` status. The request body carries `data` — a free-form object conforming to the `requiredData` JSON Schema returned by the GET endpoint. Any required files are uploaded separately via `POST /trading/orders/{orderId}/requirement/file`. Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Editor. For detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes). * @summary Submit a response to an order requirement * @param {SubmitOrderRequirementRequest} submitOrderRequirementRequest * @param {string} orderId The ID of the order to submit the order requirement response for. * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ submitOrderRequirements(submitOrderRequirementRequest: SubmitOrderRequirementRequest, orderId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Upload a single file (multipart/form-data) in response to an order requirement on an order that is in `AWAITING_INFORMATION` status. Call this endpoint once per required file. Send `fileKey` (matching a `fileKey` from `requiredFiles` on the GET response) and the binary `file`. Its type must be one of the supported file formats. Fireblocks encrypts each file and uploads it individually to the underlying provider. The textual response is submitted separately via `POST /trading/orders/{orderId}/requirement/data`. Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Editor. For detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes). * @summary Upload a file for an order requirement * @param {string} fileKey Identifier of the required file this upload satisfies. Must match a `fileKey` from `requiredFiles` on the GET response. * @param {File} file The binary file content. The file\\\'s type must be one of the supported OrderRequirementAllowedFileType values; the file name and type are derived from the uploaded part. * @param {string} orderId The ID of the order to upload the order requirement file for. * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ uploadOrderRequirementFile(fileKey: string, file: File, orderId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; }; /** * TradingApi - factory interface * @export */ export declare const TradingApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * Create an order to buy or sell an asset. If no source is given, an external source will be use. Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Editor. For detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes). * @summary Create an order * @param {TradingApiCreateOrderRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createOrder(requestParameters: TradingApiCreateOrderRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Generate a time-limited quote for asset conversion, providing exchange rate and amount calculations. If `side` is omitted it defaults to `SELL`. Use `side: BOTH` to get quotes for each side the provider supports in a single call; providers that support only one side return that side only. Every returned quote carries a concrete `BUY` or `SELL` side, never `BOTH`. Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Editor. For detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes). * @summary Create a quote * @param {TradingApiCreateQuoteRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createQuote(requestParameters: TradingApiCreateQuoteRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Retrieve all available offers across the workspace for a given asset pair. Always operates in open scope — no provider or account selection required. Returns a mix of indicative rates and committed quotes as applicable per provider. If `side` is omitted it defaults to `SELL`. Use `side: BOTH` to get offers for each side the provider supports in a single call; providers that support only one side return that side only. Every returned offer carries a concrete `BUY` or `SELL` side, never `BOTH`. If no slippageBps is provided, it defaults to 50 bps (0.5%). Slippage and settlement configuration do not affect the returned rate. Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Editor. For detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes). * @summary Get all offers * @param {TradingApiFetchAllOffersRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ fetchAllOffers(requestParameters: TradingApiFetchAllOffersRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Retrieve indicative exchange rate from specified providers for a given asset pair. Rates are non-executable price signals intended for discovery and display purposes. If `side` is omitted it defaults to `SELL`. Use `side: BOTH` to get rates for each side the provider supports in a single call; providers that support only one side return that side only. Every returned rate carries a concrete `BUY` or `SELL` side, never `BOTH`. Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. For detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes). * @summary Get rates * @param {TradingApiFetchRatesRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ fetchRates(requestParameters: TradingApiFetchRatesRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Retrieve detailed information about a specific order by its ID. Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. For detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes). * @summary Get order details * @param {TradingApiGetOrderRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getOrder(requestParameters: TradingApiGetOrderRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Fetch order requirement details for an order that is in `AWAITING_INFORMATION` status. The response includes `requirementId` and `dueBy` metadata, a `requiredData` JSON Schema (Draft-7) describing the shape of the `data` object expected on `POST /trading/orders/{orderId}/requirement/data`, and `requiredFiles` descriptors for any files the provider requires (uploaded via `POST /trading/orders/{orderId}/requirement/file`). Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. For detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes). * @summary Get order requirement details for an order * @param {TradingApiGetOrderRequirementsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getOrderRequirements(requestParameters: TradingApiGetOrderRequirementsRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Retrieve a paginated list of orders with optional filtering by account, provider, status, and time range. Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. For detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes). * @summary Get orders * @param {TradingApiGetOrdersRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getOrders(requestParameters: TradingApiGetOrdersRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Retrieve the base/quote trading pairs supported by the tenant\'s trading providers. All filters are optional and combined with AND. A provider can return several rows for one pair, one per side and per connected account, each with its own `tradeClass`. Rows may use the wildcard `*` asset ID or the `BOTH` side and are returned unexpanded (see the `baseAsset`, `side` and `baseChain` filters for how they match). **Examples** - Which providers support ETH/USDC: `?baseAsset=ETH"eAsset=USDC`. Add `providerId` to check one provider; an empty `data` array means it does not support the pair. - All pairs of one account: `?providerId=ACME&accountId=`. Page through large results with `pageSize` and `pageCursor`. - Everything you can buy with euro: `?baseAsset=EUR&tradeClass=ON_RAMP`. **Endpoint Permission:** Owner, Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. For detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes). * @summary Get trading pairs * @param {TradingApiGetTradingPairsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTradingPairs(requestParameters?: TradingApiGetTradingPairsRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Retrieve a single provider by ID. **Endpoint Permission:** Owner, Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. For detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes). * @summary Get trading provider by ID * @param {TradingApiGetTradingProviderByIdRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTradingProviderById(requestParameters: TradingApiGetTradingProviderByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Retrieve a list of all available external providers supporting trading activities through the platform. **Endpoint Permission:** Owner, Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. For detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes). * @summary Get providers * @param {TradingApiGetTradingProvidersRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTradingProviders(requestParameters?: TradingApiGetTradingProvidersRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Submit the user\'s textual response to an order requirement on an order that is in `AWAITING_INFORMATION` status. The request body carries `data` — a free-form object conforming to the `requiredData` JSON Schema returned by the GET endpoint. Any required files are uploaded separately via `POST /trading/orders/{orderId}/requirement/file`. Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Editor. For detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes). * @summary Submit a response to an order requirement * @param {TradingApiSubmitOrderRequirementsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ submitOrderRequirements(requestParameters: TradingApiSubmitOrderRequirementsRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Upload a single file (multipart/form-data) in response to an order requirement on an order that is in `AWAITING_INFORMATION` status. Call this endpoint once per required file. Send `fileKey` (matching a `fileKey` from `requiredFiles` on the GET response) and the binary `file`. Its type must be one of the supported file formats. Fireblocks encrypts each file and uploads it individually to the underlying provider. The textual response is submitted separately via `POST /trading/orders/{orderId}/requirement/data`. Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Editor. For detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes). * @summary Upload a file for an order requirement * @param {TradingApiUploadOrderRequirementFileRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ uploadOrderRequirementFile(requestParameters: TradingApiUploadOrderRequirementFileRequest, options?: RawAxiosRequestConfig): AxiosPromise; }; /** * Request parameters for createOrder operation in TradingApi. * @export * @interface TradingApiCreateOrderRequest */ export interface TradingApiCreateOrderRequest { /** * * @type {CreateOrderRequest} * @memberof TradingApiCreateOrder */ readonly createOrderRequest: CreateOrderRequest; /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof TradingApiCreateOrder */ readonly idempotencyKey?: string; } /** * Request parameters for createQuote operation in TradingApi. * @export * @interface TradingApiCreateQuoteRequest */ export interface TradingApiCreateQuoteRequest { /** * * @type {CreateQuote} * @memberof TradingApiCreateQuote */ readonly createQuote: CreateQuote; /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof TradingApiCreateQuote */ readonly idempotencyKey?: string; } /** * Request parameters for fetchAllOffers operation in TradingApi. * @export * @interface TradingApiFetchAllOffersRequest */ export interface TradingApiFetchAllOffersRequest { /** * * @type {CreateOffersRequest} * @memberof TradingApiFetchAllOffers */ readonly createOffersRequest: CreateOffersRequest; /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof TradingApiFetchAllOffers */ readonly idempotencyKey?: string; } /** * Request parameters for fetchRates operation in TradingApi. * @export * @interface TradingApiFetchRatesRequest */ export interface TradingApiFetchRatesRequest { /** * * @type {RatesRequest} * @memberof TradingApiFetchRates */ readonly ratesRequest: RatesRequest; /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof TradingApiFetchRates */ readonly idempotencyKey?: string; } /** * Request parameters for getOrder operation in TradingApi. * @export * @interface TradingApiGetOrderRequest */ export interface TradingApiGetOrderRequest { /** * The ID of the order to fetch. * @type {string} * @memberof TradingApiGetOrder */ readonly orderId: string; } /** * Request parameters for getOrderRequirements operation in TradingApi. * @export * @interface TradingApiGetOrderRequirementsRequest */ export interface TradingApiGetOrderRequirementsRequest { /** * The ID of the order for which the order requirement is issued. * @type {string} * @memberof TradingApiGetOrderRequirements */ readonly orderId: string; } /** * Request parameters for getOrders operation in TradingApi. * @export * @interface TradingApiGetOrdersRequest */ export interface TradingApiGetOrdersRequest { /** * pageSize for pagination. * @type {number} * @memberof TradingApiGetOrders */ readonly pageSize: number; /** * * @type {string} * @memberof TradingApiGetOrders */ readonly pageCursor?: string; /** * ASC / DESC ordering (default DESC) * @type {'ASC' | 'DESC'} * @memberof TradingApiGetOrders */ readonly order?: GetOrdersOrderEnum; /** * Filter by accountId. * @type {Array} * @memberof TradingApiGetOrders */ readonly accountId?: Array; /** * Filter by providerId. * @type {Array} * @memberof TradingApiGetOrders */ readonly providerId?: Array; /** * Filter by order status. * @type {Array} * @memberof TradingApiGetOrders */ readonly statuses?: Array; /** * * @type {number} * @memberof TradingApiGetOrders */ readonly startTime?: number; /** * * @type {number} * @memberof TradingApiGetOrders */ readonly endTime?: number; /** * * @type {'DIGITAL_ONLY' | 'FIAT'} * @memberof TradingApiGetOrders */ readonly assetConversionType?: GetOrdersAssetConversionTypeEnum; } /** * Request parameters for getTradingPairs operation in TradingApi. * @export * @interface TradingApiGetTradingPairsRequest */ export interface TradingApiGetTradingPairsRequest { /** * Filter by base asset ID. Also matches `*` rows on the chain of this asset. * @type {string} * @memberof TradingApiGetTradingPairs */ readonly baseAsset?: string; /** * Filter by quote asset ID. Also matches `*` rows on the chain of this asset. * @type {string} * @memberof TradingApiGetTradingPairs */ readonly quoteAsset?: string; /** * Filter by base asset blockchain `legacyId` (e.g. `ETH`, `BASECHAIN_ETH`, `SOL`). Matches both concrete-asset rows and `*` rows on that chain. * @type {string} * @memberof TradingApiGetTradingPairs */ readonly baseChain?: string; /** * Filter by quote asset blockchain `legacyId` (e.g. `ETH`, `BASECHAIN_ETH`, `SOL`). Matches both concrete-asset rows and `*` rows on that chain. * @type {string} * @memberof TradingApiGetTradingPairs */ readonly quoteChain?: string; /** * Filter by base asset transfer rail. * @type {TransferRail} * @memberof TradingApiGetTradingPairs */ readonly baseRail?: TransferRail; /** * Filter by quote asset transfer rail. * @type {TransferRail} * @memberof TradingApiGetTradingPairs */ readonly quoteRail?: TransferRail; /** * Filter by trading side. `BUY` or `SELL` also matches rows whose side is `BOTH`; `BOTH` matches rows of any side. * @type {TradingPairSide} * @memberof TradingApiGetTradingPairs */ readonly side?: TradingPairSide; /** * Filter by trade class. * @type {TradeClass} * @memberof TradingApiGetTradingPairs */ readonly tradeClass?: TradeClass; /** * Filter by provider ID. Repeat the parameter to match any of several providers, up to 50. * @type {Array} * @memberof TradingApiGetTradingPairs */ readonly providerId?: Array; /** * Filter by connected account ID. Repeat the parameter to match any of several accounts, up to 50. * @type {Array} * @memberof TradingApiGetTradingPairs */ readonly accountId?: Array; /** * Filter by whether the pair requires prefunding. * @type {boolean} * @memberof TradingApiGetTradingPairs */ readonly prefunded?: boolean; /** * An order-size filter, not a bound on the result. Only returns pairs whose own `min` field (the smallest base-asset amount the pair accepts) is at most this value, i.e. pairs that can serve an order of this size. For example, `min=10` returns pairs with a `min` of 10 or less. * @type {string} * @memberof TradingApiGetTradingPairs */ readonly min?: string; /** * An order-size filter, not a bound on the result. Only returns pairs whose own `max` field (the largest base-asset amount the pair accepts) is at least this value. For example, `max=1000` returns pairs with a `max` of 1000 or more. * @type {string} * @memberof TradingApiGetTradingPairs */ readonly max?: string; /** * Page size for pagination. * @type {number} * @memberof TradingApiGetTradingPairs */ readonly pageSize?: number; /** * Page cursor for pagination. * @type {string} * @memberof TradingApiGetTradingPairs */ readonly pageCursor?: string; } /** * Request parameters for getTradingProviderById operation in TradingApi. * @export * @interface TradingApiGetTradingProviderByIdRequest */ export interface TradingApiGetTradingProviderByIdRequest { /** * The unique identifier of the provider. * @type {string} * @memberof TradingApiGetTradingProviderById */ readonly providerId: string; } /** * Request parameters for getTradingProviders operation in TradingApi. * @export * @interface TradingApiGetTradingProvidersRequest */ export interface TradingApiGetTradingProvidersRequest { /** * Page size for pagination. * @type {number} * @memberof TradingApiGetTradingProviders */ readonly pageSize?: number; /** * Page cursor for pagination. * @type {string} * @memberof TradingApiGetTradingProviders */ readonly pageCursor?: string; } /** * Request parameters for submitOrderRequirements operation in TradingApi. * @export * @interface TradingApiSubmitOrderRequirementsRequest */ export interface TradingApiSubmitOrderRequirementsRequest { /** * * @type {SubmitOrderRequirementRequest} * @memberof TradingApiSubmitOrderRequirements */ readonly submitOrderRequirementRequest: SubmitOrderRequirementRequest; /** * The ID of the order to submit the order requirement response for. * @type {string} * @memberof TradingApiSubmitOrderRequirements */ readonly orderId: string; /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof TradingApiSubmitOrderRequirements */ readonly idempotencyKey?: string; } /** * Request parameters for uploadOrderRequirementFile operation in TradingApi. * @export * @interface TradingApiUploadOrderRequirementFileRequest */ export interface TradingApiUploadOrderRequirementFileRequest { /** * Identifier of the required file this upload satisfies. Must match a `fileKey` from `requiredFiles` on the GET response. * @type {string} * @memberof TradingApiUploadOrderRequirementFile */ readonly fileKey: string; /** * The binary file content. The file\\\'s type must be one of the supported OrderRequirementAllowedFileType values; the file name and type are derived from the uploaded part. * @type {File} * @memberof TradingApiUploadOrderRequirementFile */ readonly file: File; /** * The ID of the order to upload the order requirement file for. * @type {string} * @memberof TradingApiUploadOrderRequirementFile */ readonly orderId: string; /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof TradingApiUploadOrderRequirementFile */ readonly idempotencyKey?: string; } /** * TradingApi - object-oriented interface * @export * @class TradingApi * @extends {BaseAPI} */ export declare class TradingApi extends BaseAPI { /** * Create an order to buy or sell an asset. If no source is given, an external source will be use. Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Editor. For detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes). * @summary Create an order * @param {TradingApiCreateOrderRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TradingApi */ createOrder(requestParameters: TradingApiCreateOrderRequest): Promise>; /** * Generate a time-limited quote for asset conversion, providing exchange rate and amount calculations. If `side` is omitted it defaults to `SELL`. Use `side: BOTH` to get quotes for each side the provider supports in a single call; providers that support only one side return that side only. Every returned quote carries a concrete `BUY` or `SELL` side, never `BOTH`. Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Editor. For detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes). * @summary Create a quote * @param {TradingApiCreateQuoteRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TradingApi */ createQuote(requestParameters: TradingApiCreateQuoteRequest): Promise>; /** * Retrieve all available offers across the workspace for a given asset pair. Always operates in open scope — no provider or account selection required. Returns a mix of indicative rates and committed quotes as applicable per provider. If `side` is omitted it defaults to `SELL`. Use `side: BOTH` to get offers for each side the provider supports in a single call; providers that support only one side return that side only. Every returned offer carries a concrete `BUY` or `SELL` side, never `BOTH`. If no slippageBps is provided, it defaults to 50 bps (0.5%). Slippage and settlement configuration do not affect the returned rate. Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Editor. For detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes). * @summary Get all offers * @param {TradingApiFetchAllOffersRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TradingApi */ fetchAllOffers(requestParameters: TradingApiFetchAllOffersRequest): Promise>; /** * Retrieve indicative exchange rate from specified providers for a given asset pair. Rates are non-executable price signals intended for discovery and display purposes. If `side` is omitted it defaults to `SELL`. Use `side: BOTH` to get rates for each side the provider supports in a single call; providers that support only one side return that side only. Every returned rate carries a concrete `BUY` or `SELL` side, never `BOTH`. Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. For detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes). * @summary Get rates * @param {TradingApiFetchRatesRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TradingApi */ fetchRates(requestParameters: TradingApiFetchRatesRequest): Promise>; /** * Retrieve detailed information about a specific order by its ID. Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. For detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes). * @summary Get order details * @param {TradingApiGetOrderRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TradingApi */ getOrder(requestParameters: TradingApiGetOrderRequest): Promise>; /** * Fetch order requirement details for an order that is in `AWAITING_INFORMATION` status. The response includes `requirementId` and `dueBy` metadata, a `requiredData` JSON Schema (Draft-7) describing the shape of the `data` object expected on `POST /trading/orders/{orderId}/requirement/data`, and `requiredFiles` descriptors for any files the provider requires (uploaded via `POST /trading/orders/{orderId}/requirement/file`). Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. For detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes). * @summary Get order requirement details for an order * @param {TradingApiGetOrderRequirementsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TradingApi */ getOrderRequirements(requestParameters: TradingApiGetOrderRequirementsRequest): Promise>; /** * Retrieve a paginated list of orders with optional filtering by account, provider, status, and time range. Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. For detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes). * @summary Get orders * @param {TradingApiGetOrdersRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TradingApi */ getOrders(requestParameters: TradingApiGetOrdersRequest): Promise>; /** * Retrieve the base/quote trading pairs supported by the tenant\'s trading providers. All filters are optional and combined with AND. A provider can return several rows for one pair, one per side and per connected account, each with its own `tradeClass`. Rows may use the wildcard `*` asset ID or the `BOTH` side and are returned unexpanded (see the `baseAsset`, `side` and `baseChain` filters for how they match). **Examples** - Which providers support ETH/USDC: `?baseAsset=ETH"eAsset=USDC`. Add `providerId` to check one provider; an empty `data` array means it does not support the pair. - All pairs of one account: `?providerId=ACME&accountId=`. Page through large results with `pageSize` and `pageCursor`. - Everything you can buy with euro: `?baseAsset=EUR&tradeClass=ON_RAMP`. **Endpoint Permission:** Owner, Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. For detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes). * @summary Get trading pairs * @param {TradingApiGetTradingPairsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TradingApi */ getTradingPairs(requestParameters?: TradingApiGetTradingPairsRequest): Promise>; /** * Retrieve a single provider by ID. **Endpoint Permission:** Owner, Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. For detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes). * @summary Get trading provider by ID * @param {TradingApiGetTradingProviderByIdRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TradingApi */ getTradingProviderById(requestParameters: TradingApiGetTradingProviderByIdRequest): Promise>; /** * Retrieve a list of all available external providers supporting trading activities through the platform. **Endpoint Permission:** Owner, Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. For detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes). * @summary Get providers * @param {TradingApiGetTradingProvidersRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TradingApi */ getTradingProviders(requestParameters?: TradingApiGetTradingProvidersRequest): Promise>; /** * Submit the user\'s textual response to an order requirement on an order that is in `AWAITING_INFORMATION` status. The request body carries `data` — a free-form object conforming to the `requiredData` JSON Schema returned by the GET endpoint. Any required files are uploaded separately via `POST /trading/orders/{orderId}/requirement/file`. Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Editor. For detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes). * @summary Submit a response to an order requirement * @param {TradingApiSubmitOrderRequirementsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TradingApi */ submitOrderRequirements(requestParameters: TradingApiSubmitOrderRequirementsRequest): Promise>; /** * Upload a single file (multipart/form-data) in response to an order requirement on an order that is in `AWAITING_INFORMATION` status. Call this endpoint once per required file. Send `fileKey` (matching a `fileKey` from `requiredFiles` on the GET response) and the binary `file`. Its type must be one of the supported file formats. Fireblocks encrypts each file and uploads it individually to the underlying provider. The textual response is submitted separately via `POST /trading/orders/{orderId}/requirement/data`. Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Editor. For detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes). * @summary Upload a file for an order requirement * @param {TradingApiUploadOrderRequirementFileRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TradingApi */ uploadOrderRequirementFile(requestParameters: TradingApiUploadOrderRequirementFileRequest): Promise>; } /** * @export */ export declare const GetOrdersOrderEnum: { readonly Asc: "ASC"; readonly Desc: "DESC"; }; export type GetOrdersOrderEnum = typeof GetOrdersOrderEnum[keyof typeof GetOrdersOrderEnum]; /** * @export */ export declare const GetOrdersAssetConversionTypeEnum: { readonly DigitalOnly: "DIGITAL_ONLY"; readonly Fiat: "FIAT"; }; export type GetOrdersAssetConversionTypeEnum = typeof GetOrdersAssetConversionTypeEnum[keyof typeof GetOrdersAssetConversionTypeEnum];