Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deepbook Indexer Trades Endpoint Update (MystenLabs#20998)
## Description 1. taker_balance_manager_id and maker_balance_manager_id included with each trade 2. taker_order_id and maker_order_id included with each trade Optional Filters: 1. limit: defaults to 1 (number of trades to be included in result). Most recent trades are always included first. 2. taker_balance_manager_id: defaults to no filter 3. maker_balance_manager_id: defaults to no filter 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: `trades/SUI_USDC?start_time=1738093405&end_time=1738096485&limit=2&maker_balance_manager_id=0x344c2734b1d211bd15212bfb7847c66a3b18803f3f5ab00f5ff6f87b6fe6d27d&taker_balance_manager_id=0x47dcbbc8561fe3d52198336855f0983878152a12524749e054357ac2e3573d58` Sample Response: `[{"base_volume":405.9,"type":"sell","maker_order_id":"68160737799100866923792791","taker_order_id":"170141183460537392451039660509112362617","quote_volume":1499.8005,"maker_balance_manager_id":"0x344c2734b1d211bd15212bfb7847c66a3b18803f3f5ab00f5ff6f87b6fe6d27d","trade_id":"136321457151457660152049680","price":3.695,"timestamp":1738096392913,"taker_balance_manager_id":"0x47dcbbc8561fe3d52198336855f0983878152a12524749e054357ac2e3573d58"},{"trade_id":"137612729236617328765169261","taker_balance_manager_id":"0x47dcbbc8561fe3d52198336855f0983878152a12524749e054357ac2e3573d58","maker_order_id":"68806373841680701230353053","type":"sell","maker_balance_manager_id":"0x344c2734b1d211bd15212bfb7847c66a3b18803f3f5ab00f5ff6f87b6fe6d27d","quote_volume":1499.833,"timestamp":1738095493338,"taker_order_id":"170141183460538038087082240343418921936","price":3.73,"base_volume":402.1}]` ## Test plan How did you test the new or updated feature? Tested endpoint 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:
- Loading branch information