ZB.COM

PROGRAMMER

Rest API (Enabled)

ZB provides APIs for fast access to its spot markets with the following features: Market data, Order book, depths of bids and asks, Trade history, Trade execution, Order information, Order history, Account information.

In case of any problem, please contact our support team, E-mail address: support@zb.com.

Configuration API

Get the latest market configuration data of ZB

Resource Description
http://api.zb.plus/data/v1/markets Get the enabled market information ( price, number of decimal places)

Price API

Receive the latest ZB market data

Resource Description
http://api.zb.plus/data/v1/allTicker All Ticker
http://api.zb.plus/data/v1/ticker Price
http://api.zb.plus/data/v1/depth Market depth
http://api.zb.plus/data/v1/trades Get History Trade Data
http://api.zb.plus/data/v1/kline K line

Trade API

Place order on ZB

Resource Description
https://trade.zb.plus/api/order Place Order
http://trade.zb.plus/api/orderMoreV2 (新)批量委托下单
https://trade.zb.plus/api/cancelOrder Cancel order
https://trade.zb.plus/api/getOrder Get the buy and sell orders
https://trade.zb.plus/api/getOrders Get multiple orders info, return 10 records in one time
https://trade.zb.plus/api/getOrdersNew Get multiple orders, return no more than 100 records in one time
https://trade.zb.plus/api/getOrdersIgnoreTradeType The difference from getOrdersNew is "Cancel filtering tradeType field, it can acquire buy orders and sell orders at the same time, returns pageSize less than 10 records each request
https://trade.zb.plus/api/getUnfinishedOrdersIgnoreTradeType Get unfinished or partly finished buy order or sell order, return no more than 100 records in one time.
https://trade.zb.plus/api/getAccountInfo Get User’s Account Info
https://trade.zb.plus/api/getUserAddress Get User’s Deposit Address
https://trade.zb.plus/api/getWithdrawAddress Get User’s Verified Withdraw Address
https://trade.zb.plus/api/getPayinAddress (新)获取多链充值地址
https://trade.zb.plus/api/getWithdrawRecord Get digital asset withdrawal history
https://trade.zb.plus/api/getChargeRecord Get digital asset deposit history
https://trade.zb.plus/api/withdraw Withdraw

Margin API

Used for leveraged lending and financial management

Resource Description
https://trade.zb.plus/api/getLeverAssetsInfo Get user leverage information
https://trade.zb.plus/api/getLeverBills Get leverage bill
https://trade.zb.plus/api/transferInLever Assets are transferred to leverage
https://trade.zb.plus/api/transferOutLever Assets are transferred out of the leverage area
https://trade.zb.plus/api/loan Publish financial
https://trade.zb.plus/api/cancelLoan Cancel financial
https://trade.zb.plus/api/getLoans Gets the loanable list
https://trade.zb.plus/api/getLoanRecords Obtain loan records
https://trade.zb.plus/api/borrow Borrows
https://trade.zb.plus/api/repay Repay
https://trade.zb.plus/api/getRepayments Get repayment records
https://trade.zb.plus/api/getFinanceRecords Access to financial records
https://trade.zb.plus/api/changeInvestMark Whether changes are automatically renewed
https://trade.zb.plus/api/changeLoop Change whether automatic loans are made
https://trade.zb.plus/api/autoBorrow 一键借款,优先从最低利率开始借入
https://trade.zb.plus/api/doAllRepay 一键还款,对市场所有未还借款发起全部还款

Sub-account API

Used for Sub-account Management

Resource Description
https://trade.zb.plus/api/addSubUser Create Sub-account
https://trade.zb.plus/api/getSubUserList Acquire Sub-account List
https://trade.zb.plus/api/doTransferFunds Internal Transfer between Main Account and Sub-account
https://trade.zb.plus/api/createSubUserKey Create Sub-account API

活动API

用于活动操作

Resource Description
https://trade.zb.plus/api/getAsset 获取用户活动区资产
https://trade.zb.plus/api/transferInActArea 资金转入活动区
https://trade.zb.plus/api/transferOutActArea 资金转出活动区

Error Code

All API method invocations will return data to users in JSON format when fail to request or encounter unknown error.

Code Description Processing Mode
1000 Success -
1001 Error Tips Please check for correctness of trading pairs and other parameters
1002 Internal Error System error, please report to customer service
1003 Validate No Pass Encryption error, check whether the parameters are properly sorted correctly or others
1004 Transaction Password Locked Please operate after the transaction password is unlocked
1005 Transaction Password Error Please check the transaction password
1006 Real-name verification is pending approval or not approval Please complete Real-name Authentication in the web first
1009 This interface is in maintaining -
1010 Temporarily not open -
1012 Permission denied. Please enable the corresponding permissions in API Setting
1013 Cannot trade, if you have questions please contact online customer service -
1014 Cannot be sold during the pre-sale period -
2002 Insufficient BTC Balance -
2003 Insufficient LTC Balance -
2005 以太币账户额不足 -
2006 Insufficient ETC Balance -
2007 Insufficient BTS Balance -
2009 Insufficient account balance -
3001 Not found order or has finished Please check for correctness of the trading pair and order ID
3002 Invalid Money Check whether the order value meets the standard
3003 Invalid Amount Check whether the amount meets the standard
3004 No Such User ACCESS_KEY error, please correct it or regenerate
3005 Invalid Parameters Parameters do not follow the format
3006 Invalid IP or Differ From the Bound IP The current access IP is unbound IP, please modify it in API Setting
3007 Invalid Request Time Please correct the request time
3008 Not Found Transaction Record -
3009 价格超过限额 -
3010 你已设置该市场禁止交易,下单失败 -
3011 委托价格异常,为了避免您的资金损失,请修改后重新下单! -
4001 API接口访问频繁被锁定一小时 It will be automatically unlocked after one hour, please adjust the access frequency of the interface
4002 Request Too Frequently please adjust the access frequency of the interface

If you have problem, feel free to contact our customer service.

Files Download

Download DEMO and development of documentation

GITHUB>>