💫Getting Started

Prerequisites

  • address

  • active address

  • apply to ZKEX Team to get api key and api secret

  • depoly market maker signer service and send signer url to ZKEX Team


Maintain trading pairs information

  • Get all trading pairs infomation through the REST interface BnGetProducts

  • Get any trading pair infomation through ws, subscribe channel ws-level2

  • When you subscribe to ws-level2 for the first time, you will receive the snapshot data by push-snapshot

  • When the data of the ws-level2 changes, you will receive the data in the type of l2update


REST Interface (Recommend)

Get the server time of ZKEX

  • Http Method : GET

  • Http Path : /mm/api/server

  • Response :


Get all trading pairs supported by ZKEX

  • Http Method : GET

  • Http Path : /mm/api/products


Get Market Maker's JWT-Token (use to subscribe Websocket)

  • HTTP Method: GET

  • HTTP Path: /mm/api/users (HMAC SHA256)

  • HTTP Header: X-MBX-APIKEY : api key

Parameters:


Get Market Maker's user info

  • HTTP Method: GET

  • HTTP Path: /mm/api/self (HMAC SHA256)

  • HTTP Header: X-MBX-APIKEY : api key

Parameters:


Apply Order Slots Batchly

  • HTTP Method: GET

  • HTTP Path: /mm/api/slot (HMAC SHA256)

  • HTTP Header: X-MBX-APIKEY : api key

Parameters:


New Order

Send in a new order.

  • HTTP Method: POST

  • HTTP Path: /mm/api/orders (HMAC SHA256)

  • HTTP Header: X-MBX-APIKEY : api key

  • API Limit: A single account is only allowed to send maximum of 30 new order per second

Parameters:


Cancel Order

Cancel an active order

  • HTTP Method: DELETE

  • HTTP Path: /mm/api/order (HMAC SHA256)

  • HTTP Header: X-MBX-APIKEY : api key

Parameters


Cancel all Open Orders on a Symbol

  • HTTP Meth: DELETE

  • HTTP PATH: /mm/api/orders (HMAC SHA256)

  • HTTP HEADER: X-MBX-APIKEY : api key

Parameters:


Get all orders

Get all orders, includes new, open, filled, cancelled, cancelling, partial

  • HTTP Method: GET

  • HTTP PATH: /mm/api/orders (HMAC SHA256)

  • HTTP HEADER: X-MBX-APIKEY : api key

Parameters:


Query Order

Check an order's status.

  • HTTP Method: GET

  • HTTP PATH: /mm/api/order (HMAC SHA256)

  • HTTP Header: X-MBX-APIKEY : api key

Parameters:


Get all open orders

  • HTTP Method: GET

  • HTTP Path: /mm/api/openOrders (HMAC SHA256)

  • HTTP Header: X-MBX-APIKEY : api key

Parameters:


Account Info

  • HTTP Method: GET

  • HTTP Path: /mm/api/accounts

  • HTTP HEADER: X-MBX-APIKEY : api key

Parameters:

Last updated