Skip to content

sui_v1.43.0_1738774309_ci

@tonylee08 tonylee08 tagged this 05 Feb 14:49
## Description 

`order_updates` endpoint

Optional Filters:
1. limit: defaults to 1 (number of trades to be included in result).
Most recent trades are always included first.
2. balance_manager_id: defaults to no filter
3. status: "Placed" or "Canceled"
4. start_time: unix timestamp in seconds, defaults to 24hrs before
end_time
5. end_time: unix timestamp in seconds, defaults to current time

Sample query:

`/order_updates/DEEP_USDC?start_time=1738703053&end_time=1738704080&limit=2&status=Placed&balance_manager_id=0xd335e8aa19d6dc04273d77e364c936bad69db4905a4ab3b2733d644dd2b31e0a`

Sample Response: 

`[{"original_quantity":8910.0,"remaining_quantity":8910.0,"status":"Placed","type":"sell","price":0.22449,"filled_quantity":0.0,"balance_manager_id":"0xd335e8aa19d6dc04273d77e364c936bad69db4905a4ab3b2733d644dd2b31e0a","timestamp":1738704071994,"order_id":"170141183464610341308794360958165054983"},{"type":"buy","status":"Placed","order_id":"4106245249254490263425922919","balance_manager_id":"0xd335e8aa19d6dc04273d77e364c936bad69db4905a4ab3b2733d644dd2b31e0a","remaining_quantity":8890.0,"original_quantity":8890.0,"filled_quantity":0.0,"timestamp":1738704067473,"price":0.2226}]`

## Test plan 

How did you test the new or updated feature?

Tested locally

## Release notes

Check each box that your changes affect. If none of the boxes relate to
your changes, release notes aren't required.

For each box you select, include information after the relevant heading
that describes the impact of your changes that a user might notice and
any actions they must take to implement updates.

- [ ] Protocol: 
- [ ] Nodes (Validators and Full nodes): 
- [ ] gRPC:
- [ ] JSON-RPC: 
- [ ] GraphQL: 
- [ ] CLI: 
- [ ] Rust SDK:
Assets 2
Loading