Skip to main content
POST
/
api
/
fx
/
quotes
Request Quote
curl --request POST \
  --url http://127.0.0.1:8083/api/fx/quotes \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --header 'X-API-Secret: <api-key>' \
  --data '
{
  "source_currency": "USDT",
  "target_currency": "USDT",
  "source_network": "ETH",
  "target_network": "ETH",
  "source_amount": 99.99,
  "target_amount": 99.99
}
'
{
  "source_currency": "USDT",
  "source_network": "ETH",
  "target_currency": "USDT",
  "target_network": "ETH",
  "quote_id": "<string>",
  "exchange_date": "2023-11-07T05:31:56Z",
  "source_amount": 123,
  "exchange_rate": 123,
  "target_amount": 123,
  "expiration_time": "2023-11-07T05:31:56Z",
  "remaining_seconds": 123
}

Authorizations

X-API-Key
string
header
required

Includes an API key in the HTTP headers to authenticate the client.

X-API-Secret
string
header
required

Includes an API secret in the HTTP headers to authenticate the client.

Body

application/json
source_currency
enum<string>
required

Source Currency

Available options:
USDT,
USDC,
USD
Pattern: USDT|USDC|USD
Example:

"USDT"

target_currency
enum<string>
required

Target Currency

Available options:
USDT,
USDC,
USD
Pattern: USDT|USDC|USD
Example:

"USDT"

source_network
enum<string>
required

Source Network

Available options:
ETH,
TRX
Pattern: ETH|TRX
Example:

"ETH"

target_network
enum<string>
required

Target Network

Available options:
ETH,
TRX
Pattern: ETH|TRX
Example:

"ETH"

source_amount
number

Source Amount

Required range: 0.01 < x < 1000000
Example:

99.99

target_amount
number

Target Amount

Required range: 0.01 < x < 1000000
Example:

99.99

Response

Operation Successful

source_currency
enum<string>
required

Source Currency

Available options:
USDT,
USDC,
USD
Example:

"USDT"

source_network
enum<string>
required

Source Network

Available options:
ETH,
TRX
Example:

"ETH"

target_currency
enum<string>
required

Target Currency

Available options:
USDT,
USDC,
USD
Example:

"USDT"

target_network
enum<string>
required

Target Network

Available options:
ETH,
TRX
Example:

"ETH"

quote_id
string

Quote ID

exchange_date
string<date-time>

Exchange Date

source_amount
number

Source Amount

exchange_rate
number

Exchange Rate

target_amount
number

Target Amount

expiration_time
string<date-time>

Expiration Time

remaining_seconds
integer<int64>

Remaining seconds until expiration (zero or negative if expired)