Enable API Access

The user's API access is enabled on the site's Contact Administrator. After enabling, the key and the secret are obtained: apiKey is the access key NovaTraderEx provides to the API user, and secret is the private key used to sign request parameters.

Note: Do not disclose these two parameters to anyone. These two parameters are related to your account security.
‚Äč

Parameter Signature

All POST requests submitted by the user must be signed.

The user-invoked URL and secret use the HMAC (sha512) method to generate a hash with a key, and then the base64_encode is executed

 

API Reference

Quotes API

  1. Get /api/v1/markets Get a tradable market list

URL https://novatraderex.com/api/v1/markets

Example

 
  1. Get /api/v1/gethighestbid Get trading market's highestbid

URL https://novatraderex.com/api/v1/gethighestbid/<market>

Example

 
Market typeMarket typeRequiredDescription
marketStringYesMarket type

Return Value Description

 
  1. Get /api/v1/getlowestask/ Get trading market's lowestask

URL https://novatraderex.com/api/v1/getlowestask/<market>

Example

 
Market typeMarket typeRequiredDescription
marketStringYesMarket type

Return Value Description

 
  1. Get /api/v1/getbuyorder/ Get trading market buy order

URL https://novatraderex.com/api/v1/getbuyorder/<market>

Example

 
Market typeMarket typeRequiredDescription
marketStringYesMarket type

Return Value Description

 
  1. Get /api/v1/getsellorder/ Get trading market sell order

URL https://novatraderex.com/api/v1/getsellorder/<market>

Example

 
Market typeMarket typeRequiredDescription
marketStringYesMarket type

Return Value Description

 
  1. Post /api/v1/trade/ Trade

URL https://novatraderex.com/api/v1/trade/<market>

Example

 

Request Parameters

Market typeMarket typeRequiredDescription
nonceIntegerYesRequest Parameters
keyStringYesUser ApiKey
signatureStringYesEncrypted secret
tradetypeStringYesTrade type [buy,sell]
tradeamountStringYesTrade amount
tradepriceStringYesTrade price
marketStringYesMarket type

Return Value Description

 
  1. Get /api/v1/getprice Get the latest price in the trading market

URL https://novatraderex.com/api/v1/getprice/<market>

Example

 
Market typeMarket typeRequiredDescription
marketStringYesMarket type

Return Value Description

 
  1. Post /api/v1/cancelbyorder Cancel your order by order id

URL https://novatraderex.com/api/v1/cancelbyorder/<market>

Example

 
Market typeMarket typeRequiredDescription
marketStringYesMarket type
nonceIntegerYesRequest Parameters
keyStringYesUser ApiKey
signatureStringYesEncrypted secret
tradetypeStringYesType of transaction[buy,sell]
order_idStringYesOrder id array in JSON format

Return Value Description

 
  1. Post /api/v1/tradecount Gets the number of pending transactions

URL https://novatraderex.com/api/v1/tradecount/<market>

Example

 
Market typeMarket typeRequiredDescription
marketStringYesMarket type
tradetypeStringYesType of transaction[buy,sell]
maxpriceIntegerYesCancel the highest price Guadan (optional)(0,100]
maxpriceIntegerYesThe abolition of the minimum price Guadan (optional)(0,100]

Return Value Description

 
  1. Post /api/v1/openorders get listing for a transaction

URL https://novatraderex.com/api/v1/openorders

Example

 
Market typeMarket typeRequiredDescription
nonceIntegerYesRequest Parameters
keyStringYesUser ApiKey
signatureStringYesEncrypted secret

Return Value Description