Skip to main content
Version: v1

Pricing & Rates

Get real-time pricing and rate information for trading pairs on Nexchange.

The bulk rates endpoint provides optimized rates for trading pairs and is the recommended method for rate fetching.

Request

GET /info/bulk/

Query Parameters:

ParameterTypeRequiredDescription
pairsstringNoComma-separated list of trading pairs (e.g., BTCETH,BTCEUR). Returns all pairs if omitted

Headers:

HeaderRequiredDescription
x-referral-tokenNoReferral token for identification

Response

Returns an array of rate objects with comprehensive pricing information.

Response Fields:

FieldTypeDescription
pairstringTrading pair name
rate_idstringUnique rate identifier for order creation
fromstringSource currency
tostringTarget currency
ratestringBase rate excluding payment method fees
withdrawal_feestringWithdrawal fee amount
max_amountstringMaximum tradeable amount
min_amountstringMinimum tradeable amount
max_receive_amountstringMaximum amount you can receive
min_receive_amountstringMinimum amount you can receive
max_deposit_amountstringMaximum deposit amount
min_deposit_amountstringMinimum deposit amount
expiration_time_unixintegerExpiration time in Unix timestamp
allowed_historic_price_variancebooleanWhether historical price variance is allowed
allowed_historic_price_agebooleanWhether historical price age is considered

Example Response:

[
{
"pair": "XVGUSD",
"rate_id": "PWKQ1KG",
"from": "USD",
"to": "XVG",
"rate": "0.00597474",
"withdrawal_fee": "1.00",
"max_amount": "30000.0",
"min_amount": "1170.599099",
"max_receive_amount": "30000.0",
"min_receive_amount": "1170.599099",
"max_deposit_amount": "5000",
"min_deposit_amount": "50"
},
{
"pair": "BTCUSD",
"rate_id": "PH7KAQ3",
"from": "USD",
"to": "BTC",
"rate": "9636.68",
"withdrawal_fee": "0.0002",
"max_amount": "0.9748937",
"min_amount": "0.001",
"max_receive_amount": "0.9748937",
"min_receive_amount": "0.001",
"max_deposit_amount": "5000",
"min_deposit_amount": "50"
}
]

Fetch Current Price for a Given Amount and Pair

Get detailed pricing for a specific amount and trading pair.

Request

GET /get_price/{pair}/

Path Parameters:

ParameterTypeRequiredDescription
pairstringYesTrading pair (e.g., BTCEUR, BTCETH)

Query Parameters:

ParameterTypeRequiredDescription
amount_basenumberNo*Base amount for calculation
amount_quotenumberNo*Quote amount for calculation

*One of amount_base or amount_quote is required.

Headers:

HeaderRequiredDescription
x-referral-tokenNoReferral token for identification

Response

Returns detailed pricing information for the specified amount.

Response Fields:

FieldTypeDescription
amount_basenumberAmount of base currency user gets
amount_quotenumberAmount of quote currency user sends
timestampnumberUnix timestamp
pricenumberPrice (amount_quote / amount_base)
pairobjectPair object with base and quote properties
max_amount_basenumberMaximum base amount user can get
max_amount_quotenumberMaximum quote amount user can send
min_amount_basenumberMinimum base amount user can get
min_amount_quotenumberMinimum quote amount user can send

Example Response:

{
"amount_base": 1.06935074,
"amount_quote": 100.0,
"timestamp": 1532432055.609627,
"price": 93.52884297,
"pair": {
"base": "BTC",
"quote": "LTC"
},
"max_amount_base": 3.20049466,
"max_amount_quote": 300.0,
"min_amount_base": 0.001,
"min_amount_quote": 0.14019423
}

Get Latest Price

Get the latest market price data for a trading pair.

Request

GET /price/{pair}/latest/

Path Parameters:

ParameterTypeRequiredDescription
pairstringYesTrading pair name (e.g., BTCLTC)

Query Parameters:

ParameterTypeRequiredDescription
market_codestringNoPrice market code. Default is "nex"

Response

Returns latest price data.

Example Response:

[
{
"created_on": "2017-08-15T12:45:01.443265Z",
"unix_time": "1502801101",
"ticker": {
"ask": "97.06196063",
"bid": "96.33558341"
},
"market": {
"name": "n.exchange",
"code": "nex"
}
}
]

Error Responses

400 Bad Request

Returned for invalid or empty pairs parameter.

Example:

{
"detail": "Invalid pairs parameter"
}

401 Unauthorized

Example:

{
"detail": "Authentication credentials were not provided"
}

404 Not Found

Returned when no pairs are found or pair doesn't exist.

Example:

{
"detail": "No trading pairs found"
}

Pair not found:

{
"detail": "pair does not exist"
}

Next Steps