Submit a ticket My Tickets
Welcome
Login  Sign up

How to create API keys?

Using UI


   1. Find the API keys section in your



2. Create your API key with the create button and securely save Access Key and Security Key.




How to use the API key?


To authenticate using the API key, you need to pass 3 headers:

  • X-Auth-Apikey - Access Key for the API key. (see How to create API keys?)
  • X-Auth-Nonce - Unix timestamp in milliseconds.
  • X-Auth-Signature - HMAC-SHA256, calculated using a concatenation of X-Auth-Nonce and Access Key.

Steps:

  1. Generate X-Auth-Nonce - Unix timestamp in milliseconds.
    $ date +%s%3N # Linux user
    $ date +%s000 # Mac user

    1589942871000
  2. Calculate X-Auth-Signature header - HMAC-SHA256, calculated using a concatenation of X-Auth-Nonce and Access Key.

    Ruby:
    nonce = (Time.now.to_f * 1_000).to_i.to_s # Unix timestamp in milliseconds
    access_key = 'your_access_key' # Access Key
    secret_key = 'your_secret_key' # Secret Key
    signature = OpenSSL::HMAC.hexdigest('SHA256', secret_key, nonce + access_key)

    # signature = "6cc108cb3427b655ccf0870fc7fa807ef3756506d4db3f3c93f8d4cd8ef0e611"
    Javascript:
    const crypto = require('crypto')
    const nonce = Date.now().toString() // Unix timestamp in milliseconds
    const access_key = 'your_access_key' // Access Key
    const secret_key = 'your_secret_key' // Secret Key
    const signature = crypto.createHmac('sha256', secret_key).update(nonce + access_key).digest('hex')

    // signature = "6cc108cb3427b655ccf0870fc7fa807ef3756506d4db3f3c93f8d4cd8ef0e611"
  3. Validate API by passing additional HTTP headers in curl.
    $ curl --request GET \
    --url https://exchange.centralex.com/api/v2/peatio/account/balances \
    --header 'X-Auth-Apikey: your_access_key' \
    --header 'X-Auth-Nonce: 1589942871000' \
    --header 'X-Auth-Signature: 6cc108cb3427b655ccf0870fc7fa807ef3756506d4db3f3c93f8d4cd8ef0e611'

 

API Endpoints


Public Endpoints

Status

Get Server Status

GET https://exchange.centralex.com/api/v2/peatio/public/health/ready

Description

Get application readiness status


Responses

CodeDescription
200Get application readiness status.

 

Timestamp

Get Server Timestamp

GET https://exchange.centralex.com/api/v2/peatio/public/timestamp

Description

Get server current time, in seconds since Unix epoch.


Responses

CodeDescription
200Get server current time, in seconds since Unix epoch.

 

Member Levels

Get-Member Levels List

GET https://exchange.centralex.com/api/v2/peatio/public/member-levels

Description

Returns list of minimum levels and the privileges they provide.


Responses

CodeDescription
200Returns list of minimum levels and the privileges they provide.

 

Trading Fee

Get Trading Fee List

GET https://exchange.centralex.com/api/v2/peatio/public/trading_fees

Description

Returns trading_fees table as a paginated collection.


Parameters

NameLocated inDescriptionRequiredSchema
groupqueryMember group for define maker/taker fee.Nostring
market_idqueryMarket id for define maker/taker fee.Nostring
limitqueryLimit the number of returned paginations. Defaults to 100.Nointeger
pagequerySpecify the page of paginated results.Nointeger
orderingqueryIf set, returned values will be sorted in a specific order, defaults to 'asc'.Nostring
order_byqueryName of the field, which result will be ordered by.Nostring

Responses

CodeDescriptionSchema
200Returns trading_fees table as a paginated collection.[ TradingFee ]

 

Market Tickers

Get All Market Tickers

GET https://exchange.centralex.com/api/v2/peatio/public/markets/tickers

Description

Get ticker of all markets.


Responses

CodeDescriptionSchema
200Get ticker of all markets.Ticker

 

Get Specific Market Tickers

GET https://exchange.centralex.com/api/v2/peatio/public/markets/{market}/tickers

Description

Get ticker of a specific market.


Parameters

NameLocated inDescriptionRequiredSchema
marketpathMarket name.Yesstring

Responses

CodeDescriptionSchema
200Get ticker of a specific market.Ticker

 

Market OHLC (K-Line)

Get OHLC (K-Line) of Specific Market

GET https://exchange.centralex.com/api/v2/peatio/public/markets/{market}/k-line

Description

Get OHLC(kline) of a specific market.


Parameters

NameLocated inDescriptionRequiredSchema
marketpathMarket name.Yesstring
periodqueryThe time period of Kline defaults to 1. You can choose between 1, 5, 15, 30, 60, 120, 240, 360, 720, 1440, 4320, 10080.Nointeger
time_fromqueryAn integer represents the seconds elapsed since the Unix epoch. If set, only k-line data after that time will be returned.Nointeger
time_toqueryAn integer represents the seconds elapsed since the Unix epoch. If set, only k-line data till that time will be returned.Nointeger
limitqueryLimit the number of returned data points default to 30. Ignored if time_from and time_to are given.Nointeger

Responses

CodeDescription
200Get OHLC(kline) of a specific market.

 

Market Depth

Get Market Depth

GET https://exchange.centralex.com/api/v2/peatio/public/markets/{market}/depth

Description

Get depth or specified market. Both asks and bids are sorted from highest price to lowest.


Parameters

NameLocated inDescriptionRequiredSchema
marketpathMarket name.Yesstring
limitqueryLimit the number of returned price levels. Default to 300.Nointeger

Responses

CodeDescription
200Get depth or specified market. Both asks and bids are sorted from the highest price to the lowest.

 

Market Trades

Get Market Trades

GET https://exchange.centralex.com/api/v2/peatio/public/markets/{market}/trades

Description

Get recent trades on the market, each trade is included only once. Trades are sorted in reverse creation order.


Parameters

NameLocated inDescriptionRequiredSchema
marketpathMarket name.Yesstring
limitqueryLimit the number of returned trades. Default to 100.Nointeger
timestampqueryAn integer represents the seconds elapsed since the Unix epoch. If set, only trades executed before the time will be returned.Nointeger
order_byqueryIf set, returned trades will be sorted in a specific order, default to 'desc'.Nostring

Responses

CodeDescriptionSchema
200Get recent trades on the market, and each trade is included only once. Trades are sorted in reverse creation order.[ Trade ]

 

Order Book

Get Order Book of Specific Market

GET https://exchange.centralex.com/api/v2/peatio/public/markets/{market}/order-book

Description

Get the order book of the specified market.


Parameters

NameLocated inDescriptionRequiredSchema
marketpathMarket name.Yesstring
asks_limitqueryLimit the number of returned sell orders. Default to 20.Nointeger
bids_limitqueryLimit the number of returned buy orders. Default to 20.Nointeger

Responses

CodeDescriptionSchema
200Get the order book of the specified market.[ OrderBook ]

 

Markets

Get All Markets

GET https://exchange.centralex.com/api/v2/peatio/public/markets

Description

Get all available markets.


Parameters

NameLocated inDescriptionRequiredSchema
limitqueryLimit the number of returned paginations. Defaults to 100.Nointeger
pagequerySpecify the page of paginated results.Nointeger
orderingqueryIf set, returned values will be sorted in a specific order, defaults to 'asc'.Nostring
order_byqueryName of the field, which result will be ordered by.Nostring
base_unitqueryStrict filter for base unit.Nostring
quote_unitqueryStrict filter for quote unit.Nostring
searchquerySearch with JSON query. e.g. {"base_code": "CODE"}NoJSON
search[base_code]querySearch by contains base currency code.Nostring
search[quote_code]querySearch by contains quote currency code.Nostring
search[base_name]querySearch by contains base currency name.Nostring
search[quote_name]querySearch by contains quote currency name.Nostring

Responses

CodeDescriptionSchema
200Get all available markets.[ Market ]

 

Currencies

Get All Currencies

GET https://exchange.centralex.com/api/v2/peatio/public/currencies 

Description

Get the list of currencies.


Parameters

NameLocated inDescriptionRequiredSchema
limitqueryLimit the number of returned paginations. Defaults to 100.Nointeger
pagequerySpecify the page of paginated results.Nointeger
typequeryCurrency type.Nostring
searchquerySearch with JSON query. e.g. {"code": "CODE"}NoJSON
search[code]querySearch by contains currency code.Nostring
search[name]querySearch by contains currency name.Nostring

Responses

CodeDescriptionSchema
200Get the list of currencies.[ Currency ]

 

Get Specific Currency by ID

GET https://exchange.centralex.com/api/v2/peatio/public/currencies/{id}

Description

Get a specific currency.


Parameters

NameLocated inDescriptionRequiredSchema
idpathCurrency code.Yesstring

Responses

CodeDescriptionSchema
200Get a currencyCurrency

 

Withdraw Limits

Get withdraw limits

GET https://exchange.centralex.com/api/v2/peatio/public/withdraw_limits 

Description

Get all withdrawal limits


Parameters

NameLocated inDescriptionRequiredSchema
groupqueryMember group for define withdraw limits.Nostring
kyc_levelqueryKYC level for define withdraw limits.Nostring
limitqueryLimit the number of returned paginations. Defaults to 100.Nointeger
pagequerySpecify the page of paginated results.Nointeger
orderingqueryIf set, returned values will be sorted in a specific order, defaults to 'asc'.Nostring
order_byqueryName of the field, which result will be ordered by.Nostring

Responses

CodeDescriptionSchema
200Returns withdraw limits table as a paginated collection[ WithdrawLimit ]

 

Authenticated Endpoints

Transactions

Get Transactions History

GET https://exchange.centralex.com/api/v2/peatio/account/transactions

Description

Get your transactions history.


Parameters

NameLocated inDescriptionRequiredSchema
currencyqueryCurrency code.Nostring
order_byquerySorting order.Nostring
time_fromqueryAn integer represents the seconds elapsed since the Unix epoch.Nointeger
time_toqueryAn integer represents the seconds elapsed since the Unix epoch.Nointeger
deposit_statequeryFilter deposits by states.Nostring
withdraw_statequeryFilter withdraws by states.Nostring
txidqueryTransaction id.Nostring
limitqueryLimit the number of returned transactions. Default to 100.Nointeger
pagequerySpecify the page of paginated results.Nointeger

Responses

CodeDescription
200Get your transactions history.

 

Withdraws

Create new Withdraw

POST https://exchange.centralex.com/api/v2/peatio/account/withdraws

Description

Creates new withdrawal to the active beneficiary.


Parameters

NameLocated inDescriptionRequiredSchema
OTPformDataOTP to perform an action.Yesinteger
beneficiary_idformDataThe ID of the Active Beneficiary belonging to the user.Yesinteger
currencyformDataThe currency code.Yesstring
amountformDataThe amount to withdraw.Yesdouble
noteformDataOptional metadata to be applied to the transaction. Used to tag transactions with memorable comments.Nostring

Responses

CodeDescription
201Creates new withdrawal to an active beneficiary.

 

Get Withdraws List

GET https://exchange.centralex.com/api/v2/peatio/account/withdraws

Description

List your withdraws as a paginated collection.


Parameters

NameLocated inDescriptionRequiredSchema
currencyqueryCurrency code.Nostring
limitqueryA number of withdraws per page (defaults to 100, maximum is 100).Nointeger
statequeryFilter withdrawals by states.Nostring
ridqueryWallet address on the Blockchain.Nostring
pagequeryPage number (defaults to 1).Nointeger

Responses

CodeDescriptionSchema
200List your withdraws as a paginated collection.[ Withdraw ]

 

Beneficiaries

Delete Beneficiary

DELETE https://exchange.centralex.com/api/v2/peatio/account/beneficiaries/{id}

Description

Delete beneficiary.


Parameters

NameLocated inDescriptionRequiredSchema
idpathBeneficiary Identifier in Database.Yesinteger

Responses

CodeDescription
204Delete beneficiary.

 

Get Beneficiary by ID

GET https://exchange.centralex.com/api/v2/peatio/account/beneficiaries/{id}

Description

Get beneficiary by ID.


Parameters

NameLocated inDescriptionRequiredSchema
idpathBeneficiary Identifier in Database.Yesinteger

Responses

CodeDescriptionSchema
200Get beneficiary by ID.Beneficiary

 

Activate Beneficiary by ID

PATCH https://exchange.centralex.com/api/v2/peatio/account/beneficiaries/{id}/activate

Description

Activates beneficiary with a pin.


Parameters

NameLocated inDescriptionRequiredSchema
idpathBeneficiary Identifier in Database.Yesinteger
pinformDataPin code for beneficiary activation.Yesinteger

Responses

CodeDescriptionSchema
200Activates beneficiary with a pin.Beneficiary

 

Resend Beneficiary Pin

PATCH https://exchange.centralex.com/api/v2/peatio/account/beneficiaries/{id}/resend_pin

Description

Resend beneficiary pin by ID.


Parameters

NameLocated inDescriptionRequiredSchema
idpathBeneficiary Identifier in Database.Yesinteger

Responses

CodeDescription
200Resend beneficiary pin.

 

Create new Beneficiary

POST https://exchange.centralex.com/api/v2/peatio/account/beneficiaries

Description

Create a new beneficiary.


Parameters

NameLocated inDescriptionRequiredSchema
currencyformDataBeneficiary currency code.Yesstring
nameformDataThe human rememberable name refers to the beneficiary.Yesstring
descriptionformDataHuman rememberable description of the beneficiary.Nostring
dataformDataBeneficiary data in JSON format.YesCreateBeneficiary

Responses

CodeDescriptionSchema
201Create a new beneficiary.Beneficiary

 

Get Beneficiary List

GET https://exchange.centralex.com/api/v2/peatio/account/beneficiaries

Description

Get the list of user beneficiaries.


Parameters

NameLocated inDescriptionRequiredSchema
currencyqueryBeneficiary currency code.Nostring
statequeryDefines either beneficiary active - user can use it to withdraw money or pending - requires beneficiary activation with a pin.Nostring

Responses

CodeDescriptionSchema
200Get the list of user beneficiaries.[ Beneficiary ]

 

Deposit

Get Deposit Address by Currency

GET https://exchange.centralex.com/api/v2/peatio/account/deposit_address/{currency}

Description

Returns deposit address for the account you want to deposit to buy currency. The address may be blank because the address generation process is still in progress. If this case, you should try again later.


Parameters

NameLocated inDescriptionRequiredSchema
currencypathThe account you want to deposit to.Yesstring
address_formatqueryAddress format legacy/cash.Nostring

Responses

CodeDescriptionSchema
200Returns deposit address for the account you want to deposit to buy currency. The address may be blank because the address generation process is still in progress. If this case, you should try again later.Deposit

 

Get Specific Deposit by Transaction ID

GET https://exchange.centralex.com/api/v2/peatio/account/deposits/{txid}

Description

Get details of the specific deposits.


Parameters

NameLocated inDescriptionRequiredSchema
txidpathDeposit transaction id.Yesstring

Responses

CodeDescriptionSchema
200Get details of the specific deposit.Deposit

 

Get Deposits History

GET https://exchange.centralex.com/api/v2/peatio/account/deposits

Description

Get the history of your deposits.


Parameters

NameLocated inDescriptionRequiredSchema
currencyqueryCurrency code.Nostring
statequeryFilter deposits by states.Nostring
txidqueryDeposit transaction id.Nostring
limitqueryA number of deposits per page (defaults to 100, maximum is 100).Nointeger
pagequeryPage number (defaults to 1).Nointeger

Responses

CodeDescriptionSchema
200Get deposits history.[ Deposit ]

 

Balances

Get Balance by Currency

GET https://exchange.centralex.com/api/v2/peatio/account/balances/{currency}

Description

Get user account by currency.


Parameters

NameLocated inDescriptionRequiredSchema
currencypathThe currency code.Yesstring

Responses

CodeDescriptionSchema
200Get user account by currencyAccount

 

Get All Balances

GET https://exchange.centralex.com/api/v2/peatio/account/balances

Description

Get the list of user accounts


Parameters

NameLocated inDescriptionRequiredSchema
limitqueryLimit the number of returned paginations. Defaults to 100.Nointeger
pagequerySpecify the page of paginated results.Nointeger
nonzeroqueryFilter non zero balances.NoBoolean
searchquerySearch with JSON query. e.g. {"currency_code": "CODE"}NoJSON
search[currency_code]querySearch by contains currency code.Nostring
search[currency_name]querySearch by contains currency name.Nostring

Responses

CodeDescriptionSchema
200Get the list of user accounts[ Account ]

 

Trades

Get Executed Trades

GET https://exchange.centralex.com/api/v2/peatio/market/trades

Description

Get your executed trades. Trades are sorted in reverse creation order.


Parameters

NameLocated inDescriptionRequiredSchema
marketqueryMarket name.Nostring
limitqueryLimit the number of returned trades. Default to 100.Nointeger
pagequerySpecify the page of paginated results.Nointeger
time_fromqueryAn integer represents the seconds elapsed since the Unix epoch. If set, only trades executed after the time will be returned.Nointeger
time_toqueryAn integer represents the seconds elapsed since the Unix epoch. If set, only trades executed before the time will be returned.Nointeger
order_byqueryIf set, returned trades will be sorted in a specific order, default to 'desc'.Nostring

Responses

CodeDescriptionSchema
200Get your executed trades. Trades are sorted in reverse creation order.[ Trade ]

 

Orders

Create New Order

POST https://exchange.centralex.com/api/v2/finex/market/orders

Description

Submit a new order. Notice that while the response from the server is ok, the order can still be rejected by the matching engine. You should wait for confirmation from the WebSocket to be sure that your order has been added to the orderbook.


Parameters

NameLocated inDescriptionRequiredSchema
marketbodyMarket name.Yesstring
sidebodyOrder side (buy or sell).Yesstring
amountbodyAmount.Yesdecimal
typebodyOrder type (limit, market or post_only).Yesstring
pricebodyPrice.Yesdecimal

Responses

CodeDescriptionSchema
201Your order was submitted and awaits processing.SubmitOrder
400Bad request, make sure the JSON syntax of your request is correct. 
422Invalid request, make sure every mandatory field are present. 
500Internal Server Error. 

 

Cancel Order by ID or UUID

POST https://exchange.centralex.com/api/v2/finex/market/orders/cancel/{id|uuid}

Description

Submit cancel request, cancels order from the orderbook.


Parameters

NameLocated inDescriptionRequiredSchema
id|uuidpathOrder ID or UUID.Yesinteger|string

Responses

CodeDescriptionSchema
201Your cancel request was submitted and awaits processing. 
422Invalid request, make sure every mandatory field are present. 
500Internal Server Error. 

 

Cancel All Orders

POST https://exchange.centralex.com/api/v2/finex/market/orders/cancel

Description

Submit a cancel request, cancels all your orders from orderbook.


Parameters

NameLocated inDescriptionRequiredSchema
marketbodyMarket name.Yesstring
sidebodyOrder side (buy or sell)Yesstring

Responses

CodeDescriptionSchema
200Your cancel request was submitted and awaits processing. 
422Invalid request, make sure every mandatory field are present. 
500Internal Server Error. 

 

Create Bulk Orders

POST https://exchange.centralex.com/api/v2/finex/market/bulk/orders

Description

Bulk API to create a list of orders in one request. The default limit is set to 100 orders for one request, and this might be configured by the administrator with the parameter API.bulk_limit


Parameters

NameLocated inDescriptionRequiredSchema
-bodyThe array of order params (refer to create order params)Yes[NewOrder]

Responses

CodeDescriptionSchema
201Your order was submitted and awaits processing.SubmitOrder
413Request entity too large. Your request contains too many orders. 
422Invalid request, make sure every mandatory field are present. 
500Internal Server Error. 

 

Cancel Bulk Orders by UUID

DELETE https://exchange.centralex.com/api/v2/finex/market/bulk/orders

Description

Bulk API to cancel orders by UUID.


Parameters

NameLocated inDescriptionRequiredSchema
[]bodyAn array of order UUID.Yesstring[]

Responses

CodeDescriptionSchema
200Your cancel request was submitted and awaits processing. 
413Request entity too large. Your request contains too many orders. 
422Invalid request, make sure every mandatory field are present. 
500Internal Server Error. 

 

Cancel Bulk Orders by ID

DELETE https://exchange.centralex.com/api/v2/finex/market/bulk/orders_by_id

Description

Bulk API to cancel orders by ID.


Parameters

NameLocated inDescriptionRequiredSchema
[]bodyAn array of order ID.Yesinteger[]

Responses

CodeDescriptionSchema
200Your cancel request was submitted and awaits processing. 
413Request entity too large. Your request contains too many orders. 
422Invalid request, make sure every mandatory field are present. 
500Internal Server Error. 

 

Get All Orders

GET https://exchange.centralex.com/api/v2/peatio/market/orders

Description

Get your orders, and the result is paginated.


Parameters

NameLocated inDescriptionRequiredSchema
marketqueryMarket name.Nostring
base_unitqueryBase currency unit.Nostring
quote_unitqueryQuote currency unit.Nostring
statequeryFilter order by state.Nostring
limitqueryLimit the number of returned orders, default to 100.Nointeger
pagequerySpecify the page of paginated results.Nointeger
order_byqueryIf set returned, orders will be sorted in a specific order, default to "desc".Nostring
ord_typequeryFilter order by ord_type.Nostring
typequeryFilter order by type.Nostring
time_fromqueryAn integer represents the seconds elapsed since the Unix epoch. If set, only orders created after the time will be returned.Nointeger
time_toqueryAn integer represents the seconds elapsed since the Unix epoch. If set, only orders created before the time will be returned.Nointeger

Responses

CodeDescriptionSchema
200Get your orders, the result is paginated.[ Order ]

 

Get Specific Order by ID

GET https://exchange.centralex.com/api/v2/peatio/market/orders/{id}

Description

Get information on the specified order.

Parameters

NameLocated inDescriptionRequiredSchema
idpathOrder ID.Yesstring

Responses

CodeDescriptionSchema
200Get information on the specified order.Order

 

Schema


 

TradingFee

NameTypeDescription
idintegerUnique trading fee table identifier in the database.
groupstringMember group for define maker/taker fee.
market_idstringMarket id for define maker/taker fee.
makerdoubleMarket maker fee.
takerdoubleMarket taker fee.
created_atstringTrading fee table created time in iso8601 format.
updated_atstringTrading fee table updated time in iso8601 format.

 

Ticker

NameTypeDescription
atintegerTimestamp of ticker
tickerTickerEntryTicker entry for a specified time

 

TickerEntry

NameTypeDescription
lowdoubleThe lowest trade price during the last 24 hours (0.0 if no trades executed during last 24 hours)
highdoubleThe highest trade price during the last 24 hours (0.0 if no trades executed during last 24 hours)
opendoublePrice of the first trade executed 24 hours ago or less
lastdoubleThe last executed trade price
volumedoubleThe total volume of trades executed during last 24 hours
amountdoubleThe total amount of trades executed during last 24 hours
voldoubleAlias to volume
avg_pricedoubleAverage price more precisely VWAP is calculated by adding up the total traded for every transaction(price multiplied by the number of shares traded) and then dividing by the total shares traded
price_change_percentstringPrice change in the next format +3.19%.Price change is calculated using next formula (last - open) / open * 100%
atintegerTimestamp of ticker

 

Trade

NameTypeDescription
idstringTrade ID.
pricedoubleTrade price.
amountdoubleTrade amount.
totaldoubleTrade total (Amount * Price).
fee_currencydoubleCurrency user's fees were charged in.
feedoublePercentage of fee user was charged for performed trade.
fee_amountdoubleAmount of fee user was charged for performed trade.
marketstringTrade market name.
created_atstringTrade creates time in iso8601 format.
taker_typestringTrade taker order type (sell or buy).
sidestringTrade side.
order_idintegerOrder id.

 

OrderBook

NameTypeDescription
asks[ Order ]Asks in orderbook
bids[ Order ]Bids in orderbook

 

Order

NameTypeDescription
idintegerUnique order ID.
uuidstringUnique order UUID.
sidestringEither 'sell' or 'buy'.
ord_typestringType of order, either 'limit' or 'market'.
pricedoublePrice for each unit. e.g.If you want to sell/buy 1 BTC at 3000 USD, the price is '3000.0'
avg_pricedoubleAverage execution price, an average price in trades.
statestringOne of 'wait', 'done', or 'cancel'.An order in 'wait' is an active order, waiting for fulfilment; a 'done' order is an order fulfilled; 'cancel' means the order has been cancelled.
marketstringThe market in which the order is placed, e.g. 'btcusd'.All available markets can be found at /api/v2/markets.
created_atstringOrder create time in iso8601 format.
updated_atstringOrder updated time in iso8601 format.
origin_volumedoubleThe amount user wants to sell/buy. An order could be partially executed,e.g. an order sell 5 BTC can be matched with a buy 3 BTC order, left 2 BTC to be sold; in this case, the order's volume would be '5.0', its remaining_volume would be '2.0', its executed volume is '3.0'.
remaining_volumedoubleFor the remaining volume, see 'volume'.
executed_volumedoubleThe executed volume, see 'volume'.
maker_feedoubleFee for the maker.
taker_feedoubleFee for a taker.
trades_countintegerCount of trades.
trades[ Trade ]Trades with this order.

 

Market

NameTypeDescription
idstringUnique market id. It's always in the form of xxxyyy, where xxx is the base currency code, yyy is the quotecurrency code, e.g. 'btcusd'. All available markets can be found at /api/v2/markets.
namestringMarket name.
base_unitstringMarket Base unit.
quote_unitstringMarket Quote unit.
min_pricedoubleMinimum order price.
max_pricedoubleMaximum order price.
min_amountdoubleMinimum order amount.
amount_precisiondoublePrecision for the order amount.
price_precisiondoublePrecision for order price.
statestringThe market state defines if the user can see/trade on the current market.

 

Currency

NameTypeDescription
idstringCurrency code.
Example: "btc"
namestringCurrency name
Example: "Bitcoin"
descriptionstringCurrency description
Example: "btc"
homepagestringCurrency homepage
Example: "btc"
pricestringCurrency current price
explorer_transactionstringCurrency transaction explorer URL template
Example: "https://testnet.blockchain.info/tx/"
explorer_addressstringCurrency address explorer URL template
Example: "https://testnet.blockchain.info/address/"
typestringCurrency type
Example: "coin"
deposit_enabledstringCurrency deposit possibility status (true/false).
withdrawal_enabledstringCurrency withdrawal possibility status (true/false).
deposit_feestringCurrency deposit fee
Example: "0.0"
min_deposit_amountstringMinimal deposit amount
Example: "0.0000356"
withdraw_feestringCurrency withdraw fee
Example: "0.0"
min_withdraw_amountstringMinimal withdraw amount
Example: "0.0"
withdraw_limit_24hstringCurrency 24h withdraw limit
Example: "0.1"
withdraw_limit_72hstringCurrency 72h withdraw limit
Example: "0.2"
base_factorstringCurrency base factor
Example: 100000000
precisionstringCurrency precision
Example: 8
positionstringA position used for defining currencies order
Example: 8
icon_urlstringCurrency icon
Example: "https://upload.wikimedia.org/wikipedia/commons/0/05/Ethereum_logo_2014.svg"
min_confirmationsstringNumber of confirmations required for confirming deposit or withdrawal

 

WithdrawLimit

NameTypeDescriptionRequired
idintegerUnique withdraw limit table identifier in the database.No
groupstringMember group for define withdraw limits.No
kyc_levelstringKYC level for define withdraw limits.No
limit_24_hourdouble24 hours withdrawal limit.No
limit_1_monthdouble1 month withdrawal limit.No
created_atstringWithdraw limit table created time in iso8601 format.No
updated_atstringWithdraw limit table updated time in iso8601 format.No

 

Withdraw

NameTypeDescription
idintegerThe withdrawal id.
currencystringThe currency code.
typestringThe withdrawal-type
amountstringThe withdrawal amount
feedoubleThe exchange fee.
blockchain_txidstringThe withdrawal transaction id.
ridstringThe beneficiary ID or wallet address on the Blockchain.
statestringThe withdrawal state.
confirmationsintegerA number of confirmations.
notestringWithdraw note.
created_atstringThe datetimes for the withdrawal.
updated_atstringThe datetimes for the withdrawal.
done_atstringThe DateTime when withdraw was completed

 

CreateBeneficiary

NameTypeDescription
addressstringBlockchain address.

 

Beneficiary

NameTypeDescription
idintegerBeneficiary Identifier in Database
currencystringBeneficiary currency code.
uidstringBeneficiary owner
namestringHuman rememberable name which refers beneficiary.
descriptionstringHuman rememberable description of the beneficiary.
dataJSONBank Account details for fiat Beneficiaries in JSON format. For crypto, it's a blockchain address.
statestringDefines either beneficiary active - user can use it to withdraw money or pending - requires beneficiary activation with a pin.
sent_atstringThe time when the last pin was sent

 

Deposit

NameTypeDescription
idintegerUnique deposit id.
currencystringDeposit currency id.
amountdoubleDeposit amount.
feedoubleDeposit fee.
txidstringDeposit transaction id.
confirmationsintegerA number of deposit confirmations.
statestringDeposit state.
transfer_typestringDeposit transfer type
created_atstringThe DateTime when the deposit was created.
completed_atstringThe DateTime when the deposit was completed.
tidstringThe shared transaction ID

 

Account

NameTypeDescription
currencystringCurrency code.
balancedoubleAccount available balance.
lockeddoubleAccount locked funds.

 

Transactions

NameTypeDescription
addressstringRecipient address of the transaction.
currencystringTransaction currency id.
amountdoubleTransaction amount.
feedoubleTransaction fee.
txidstringTransaction id.
statestringTransaction state.
notestringWithdraw note.
confirmationsintegerA number of confirmations.
created_atstringTransaction created time in iso8601 format.
updated_atstringTransaction updated time in iso8601 format.
typestringType of transaction

 

NewOrder 

NameTypeDescription
marketstringMarket name.
sidestringOrder side (buy or sell)
amountdecimalAmount.
typestringOrder type (limit, market or post_only).
pricedecimalPrice.

 

SubmitOrder

NameTypeDescription
uuid
stringOrder UUID.
side
stringOrder side (buy or sell)
type
stringOrder type (limit, market or post_only)
market
stringMarket name.
origin_volume
doubleOrigin volume
remaining_volume
doubleRemaining volume.
executed_volume
doubleExecuted volume.
price
stringOrder price.
state
stringOrder state.
trades_count
integerTrades count.
created_at
integerUnix timestamp.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.