UNPKG

@algodex/algodex-sdk

Version:

API calls for interacting with the Algorand blockchain

22 lines (18 loc) 453 B
# <a name="close"></a> ❌ Close order [WIP] Close an order from the {@tutorial Orderbook}. Must be connected to the wallet that created the order. ### Cancel Maker Order ```javascript const orders = await api.placeOrder({ 'asset': { 'id': 15322902, 'decimals': 6, }, 'address': 'WYWRYK42XADLY3O62N52BOLT27DMPRA3WNBT2OBRT65N6OEZQWD4OSH6PI', 'price': 3.22, 'amount': 1, 'execution': 'maker', 'type': 'buy', }); await api.closeOrder(orders[0]) ```