curl --request POST \
--url 'https://api-sandbox.uqpaytech.com/api/v1/stocks/quote' \
--header "Content-Type: application/json" \
--header "x-auth-token: Bearer ${SANDBOX_TOKEN}" \
--header "x-idempotency-key: ${UNIQUE_IDEMPOTENCY_KEY}" \
--data '{
"asset_id": "7453f146-b267-11f1-b4f4-0abd773ba497",
"side": "BUY",
"funding_currency": "USDC",
"cash_amount": "1"
}'
{
"quote_id": "0576b03b-56dd-48b1-ba24-058ce90d0f53",
"asset_id": "7453f146-b267-11f1-b4f4-0abd773ba497",
"symbol": "AAPLx",
"side": "BUY",
"network": "Ethereum",
"funding_currency": "USDC",
"quantity": "0.00297066689243735",
"price": "336.624750000000055741",
"cash_amount": "1",
"fees": [
{
"type": "TRADING",
"amount": "0.0005",
"currency": "USDC"
}
],
"total_amount": "1.0005",
"created_at": "2026-09-21T01:33:07.797Z",
"expires_at": "2026-09-21T01:34:04.542Z"
}
Create a quote
Request a buy quote by cash amount or a sell quote by quantity. Supply exactly one positive decimal amount and inspect the returned expiry and nullable values before creating an order. Examples contain captured Sandbox identifiers. Request a fresh quote and use a new idempotency key for a new operation.
curl --request POST \
--url 'https://api-sandbox.uqpaytech.com/api/v1/stocks/quote' \
--header "Content-Type: application/json" \
--header "x-auth-token: Bearer ${SANDBOX_TOKEN}" \
--header "x-idempotency-key: ${UNIQUE_IDEMPOTENCY_KEY}" \
--data '{
"asset_id": "7453f146-b267-11f1-b4f4-0abd773ba497",
"side": "BUY",
"funding_currency": "USDC",
"cash_amount": "1"
}'
{
"quote_id": "0576b03b-56dd-48b1-ba24-058ce90d0f53",
"asset_id": "7453f146-b267-11f1-b4f4-0abd773ba497",
"symbol": "AAPLx",
"side": "BUY",
"network": "Ethereum",
"funding_currency": "USDC",
"quantity": "0.00297066689243735",
"price": "336.624750000000055741",
"cash_amount": "1",
"fees": [
{
"type": "TRADING",
"amount": "0.0005",
"currency": "USDC"
}
],
"total_amount": "1.0005",
"created_at": "2026-09-21T01:33:07.797Z",
"expires_at": "2026-09-21T01:34:04.542Z"
}
curl --request POST \
--url 'https://api-sandbox.uqpaytech.com/api/v1/stocks/quote' \
--header "Content-Type: application/json" \
--header "x-auth-token: Bearer ${SANDBOX_TOKEN}" \
--header "x-idempotency-key: ${UNIQUE_IDEMPOTENCY_KEY}" \
--data '{
"asset_id": "7453f146-b267-11f1-b4f4-0abd773ba497",
"side": "BUY",
"funding_currency": "USDC",
"cash_amount": "1"
}'
{
"quote_id": "0576b03b-56dd-48b1-ba24-058ce90d0f53",
"asset_id": "7453f146-b267-11f1-b4f4-0abd773ba497",
"symbol": "AAPLx",
"side": "BUY",
"network": "Ethereum",
"funding_currency": "USDC",
"quantity": "0.00297066689243735",
"price": "336.624750000000055741",
"cash_amount": "1",
"fees": [
{
"type": "TRADING",
"amount": "0.0005",
"currency": "USDC"
}
],
"total_amount": "1.0005",
"created_at": "2026-09-21T01:33:07.797Z",
"expires_at": "2026-09-21T01:34:04.542Z"
}
Authorizations
The API token for login provided by UQPAY.
Headers
A unique identifier used to maintain operation idempotency. Use the same key and request body when retrying an operation, and a new key for a new operation.
^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$Body
- Buy quote
- Sell quote
Asset identifier returned by List assets.
"7453f146-b267-11f1-b4f4-0abd773ba497"
BUY "BUY"
Currency used to fund the trade.
USDC "USDC"
Positive funding amount before fees. Do not include quantity.
^[0-9]{1,18}(\.[0-9]{1,6})?$"1"
Response
Success
Quote identifier to submit when creating an order.
"0576b03b-56dd-48b1-ba24-058ce90d0f53"
Asset identifier used across asset, quote, order, and position requests.
"7453f146-b267-11f1-b4f4-0abd773ba497"
Asset symbol.
"AAPLx"
Direction of the proposed trade.
BUY, SELL "BUY"
Network selected for the quote. The quote request does not choose a network.
"Ethereum"
Funding currency.
USDC "USDC"
Quoted asset quantity; null when the quantity is determined during execution.
^-?[0-9]+(\.[0-9]+)?$"0.00297066689243735"
Quoted price per unit in funding_currency; null when the execution price is not fixed by the quote.
^-?[0-9]+(\.[0-9]+)?$"336.624750000000055741"
Trade amount before fees in funding_currency; null when it is determined during execution.
^-?[0-9]+(\.[0-9]+)?$"1"
Quoted fees. Null means fees are not yet available; it does not mean that no fee will be charged.
Show child attributes
Show child attributes
Buy outlay including fees, or sell proceeds after fees, in funding_currency. Null when the total cannot yet be determined.
^-?[0-9]+(\.[0-9]+)?$"1.0005"
Time the quote was created.
"2026-09-21T01:33:07.797Z"
Deadline for accepting the quote. Request a new quote after expiry.
"2026-09-21T01:34:04.542Z"

