@algodex/algodex-sdk
Version:
API calls for interacting with the Algorand blockchain
22 lines (18 loc) • 453 B
Markdown
Close an order from the {@tutorial Orderbook}. Must be connected to the wallet
that created the 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])
```