Exchange API

API for exchanges

Pre-calculate the exchange

post

Permission annotations:

Header parameters
KeystringRequired
SignstringRequired
Body

Object with request data

accountstringRequired

Merchant account ID. Request will be sent for this account

timestampinteger · int64Required

Current unix UTC timestamp in milliseconds. Must not be less than 3 minutes in the past and not greater than 3 minutes in the future

Responses
chevron-right
200

OK

*/*

Response to pre-calculate exchange

sourceCurrencystringRequired

Source currency

destinationCurrencystringRequired

Destination currency

amountnumberRequired

Destination amount

directionstring · enumRequired

Exchange direction

Possible values:
post
/api/v1/exchange/pre-calculate

Get currency pairs

post

Permission annotations:

Header parameters
KeystringRequired
SignstringRequired
Body

Object with request data

accountstringRequired

Merchant account ID. Request will be sent for this account

timestampinteger · int64Required

Current unix UTC timestamp in milliseconds. Must not be less than 3 minutes in the past and not greater than 3 minutes in the future

Responses
chevron-right
200

OK

*/*

Currency pairs

post
/api/v1/exchange/pairs

Get upper exchange limit by currency

post

Permission annotations:

Header parameters
KeystringRequired
SignstringRequired
Body

Object with request data

accountstringRequired

Merchant account ID. Request will be sent for this account

timestampinteger · int64Required

Current unix UTC timestamp in milliseconds. Must not be less than 3 minutes in the past and not greater than 3 minutes in the future

Responses
chevron-right
200

OK

*/*

Exchange limit by currency

sourceCurrencystringRequired

Exchange currency

destinationCurrencystringRequired
minLimitnumberRequired

Minimum amount

maxLimitnumberRequired

Maximum amount

post
/api/v1/exchange/limit

Get exchange

post

Permission annotations:

Header parameters
KeystringRequired
SignstringRequired
Body

Object with request data

accountstringRequired

Merchant account ID. Request will be sent for this account

timestampinteger · int64Required

Current unix UTC timestamp in milliseconds. Must not be less than 3 minutes in the past and not greater than 3 minutes in the future

Responses
chevron-right
200

OK

*/*

Exchange

idinteger · int64Required

Exchange id

accountstringRequired

Account

sourceCurrencystringRequired

Source currency

sourceAmountnumberRequired

Source amount

destinationCurrencystringRequired

Destination currency

destinationAmountnumberOptional

Destination amount

statestring · enumRequired

Exchange state

Possible values:
createdDatestring · date-timeRequired

Exchange creation date

post
/api/v1/exchange/get

Find exchange by filter

post

Permission annotations:

Header parameters
KeystringRequired
SignstringRequired
Body

Object with request data

accountstringRequired

Merchant account ID. Request will be sent for this account

timestampinteger · int64Required

Current unix UTC timestamp in milliseconds. Must not be less than 3 minutes in the past and not greater than 3 minutes in the future

Responses
chevron-right
200

OK

*/*

Object with page details

pageinteger · int32Required

Numeric value indicating the page number

sizeinteger · int32Required

Numeric value indicating the page size

totalinteger · int32Required

Total number of pages matching the query

totalElementsinteger · int64Required

Total number of objects matching the query

post
/api/v1/exchange/filter

Create exchange

post

Permission annotations:

Header parameters
KeystringRequired
SignstringRequired
Body

Object with request data

accountstringRequired

Merchant account ID. Request will be sent for this account

timestampinteger · int64Required

Current unix UTC timestamp in milliseconds. Must not be less than 3 minutes in the past and not greater than 3 minutes in the future

Responses
chevron-right
200

OK

*/*

Exchange

idinteger · int64Required

Exchange id

accountstringRequired

Account

sourceCurrencystringRequired

Source currency

sourceAmountnumberRequired

Source amount

destinationCurrencystringRequired

Destination currency

destinationAmountnumberOptional

Destination amount

statestring · enumRequired

Exchange state

Possible values:
createdDatestring · date-timeRequired

Exchange creation date

post
/api/v1/exchange/create

Get average rate for currency pair

post

Permission annotations:

Header parameters
KeystringRequired
SignstringRequired
Body

Object with request data

accountstringRequired

Merchant account ID. Request will be sent for this account

timestampinteger · int64Required

Current unix UTC timestamp in milliseconds. Must not be less than 3 minutes in the past and not greater than 3 minutes in the future

Responses
chevron-right
200

OK

*/*

Average rate

ratenumberRequired

Rate

post
/api/v1/exchange/average-rate

Last updated