Handling Orders

Placing an Order

Order requests will be signed using the private key.

Example:

const ws = new Sunbeam(client, opts) ws.on('open', () => { await ws.auth() const order = { symbol: 'tBTCUSD', price: '8100', amount: '1.23', type: 'EXCHANGE LIMIT' // available types: EXCHANGE_MARKET EXCHANGE_IOC EXCHANGE_LIMIT } await ws.place(order) }) ws.open()

Canceling an Order

Once the order is placed, you are able to cancel this order by calling ws.cancel():

ws.cancel({ id: orderId })

These examples are designed to let you quickly start exploring and developing applications with the eosfinex API.

To continue, view the comprehensive documentations below:


Websocket Playground