Create an exchange quote between two assets. Specify either fromAmount (how much
to sell) or toAmount (how much to receive), not both. Quotes expire after 5 minutes.
curl --request POST \
--url https://api.nxos.io/v1/quotes \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"accountId": "acct_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4",
"fromAsset": "USD",
"toAsset": "USDC",
"fromAmount": "10000.00"
}
'{
"object": "quote",
"quoteId": "quote_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4",
"accountId": "acct_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4",
"fromAsset": "USD",
"toAsset": "USDC",
"fromAmount": "10000.00",
"toAmount": "9997.000000",
"appliedRate": "1.0003",
"spread": {
"fee": "3.00",
"asset": "USD"
},
"status": "PENDING",
"expiresAt": "2025-03-15T14:35:00.000Z",
"createdAt": "2025-03-15T14:30:00.000Z"
}Bearer token. Format: Bearer <api_key>
Request body for creating a new quote. Specify either fromAmount or toAmount, not both.
Account to create the quote for.
Source asset code (e.g., USD).
Destination asset code (e.g., USDT).
Amount to convert, in major units of the source asset. Mutually exclusive with toAmount.
Desired destination amount, in major units. Mutually exclusive with fromAmount.
The request has succeeded.
An exchange quote for converting between two assets.
Object type. Always quote.
quote Unique quote identifier.
Account this quote belongs to.
Source asset code (e.g., USD).
Destination asset code (e.g., USDT).
Source amount in major units (e.g., 100.00).
Destination amount in major units (e.g., 99.97).
The exchange rate applied to this quote.
Spread fee details. Null if no spread fee was applied.
Show child attributes
Current quote status.
PENDING, COMPLETED, EXPIRED, FAILED When this quote expires. Quotes are valid for 5 minutes.
When this quote was created.
curl --request POST \
--url https://api.nxos.io/v1/quotes \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"accountId": "acct_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4",
"fromAsset": "USD",
"toAsset": "USDC",
"fromAmount": "10000.00"
}
'{
"object": "quote",
"quoteId": "quote_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4",
"accountId": "acct_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4",
"fromAsset": "USD",
"toAsset": "USDC",
"fromAmount": "10000.00",
"toAmount": "9997.000000",
"appliedRate": "1.0003",
"spread": {
"fee": "3.00",
"asset": "USD"
},
"status": "PENDING",
"expiresAt": "2025-03-15T14:35:00.000Z",
"createdAt": "2025-03-15T14:30:00.000Z"
}