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
}
'
{
  "quote_id": "quote_f91fafe4b4fb463c8d0b04a90fece464",
  "valid_from": "2023-11-07T05:31:56Z",
  "source_currency": "USDT",
  "source_network": "ETH",
  "target_currency": "USDC",
  "target_network": "TRX",
  "source_amount": 1000,
  "exchange_rate": 1.005,
  "target_amount": 995,
  "valid_to": "2023-11-07T05:31:56Z",
  "remaining_seconds": 180
}

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

Exchange Records Response

quote_id
string

Quote ID

Example:

"quote_f91fafe4b4fb463c8d0b04a90fece464"

valid_from
string<date-time>

Exchange valid from time

source_currency
enum<string>

Source currency code

Available options:
USDT,
USDC,
USD
Example:

"USDT"

source_network
enum<string>

Source currency network

Available options:
ETH,
TRX
Example:

"ETH"

target_currency
enum<string>

Target currency code

Available options:
USDT,
USDC,
USD
Example:

"USDC"

target_network
enum<string>

Target currency network

Available options:
ETH,
TRX
Example:

"TRX"

source_amount
number

Source exchange amount

Example:

1000

exchange_rate
number

Exchange rate between source and target currency

Example:

1.005

target_amount
number

Target exchange amount

Example:

995

valid_to
string<date-time>

Quote expiration time

remaining_seconds
integer<int64>

Remaining seconds before expiration

Example:

180