Lists exchange orders within specified network
CLI Example
Command syntax:
srv_xchange orders
-net <net_name>
[-status {opened|closed|all}]
[-token_from <token_ticker>]
[-token_to <token_ticker>]
Options:
-net - name of the Cellframe Network. The list of networks can be found in the <Config_dir> \ etc \ network folder or received by The Cellframe-Node-CLI using command - net list
-status - filtration by selected order status: opened/closed/all (optional)
-token_from - filtration by kind of token is being sold (optional)
-token_to - filtration by kind of token is being bought (optional)
Example:
Command:
cellframe-node-cli srv_xchange orders
-net riemann
-status opened
Response:
orderHash: 0x4AEF38DCE3C47953040E8FCB6C19ABD961AE6E0BB6AAE7AC6CDA5BC315E0E630
ts_created: Fri Feb 16 16:45:44 2024 (1708130744)
Status: OPENED, amount: 0.000000000000000001 (1) tKEL, filled: 0.0%, rate (mtKEL/tKEL): 1.1, net: riemann
orderHash: 0x918E3B988CB5B04DC415DC329DEA6C8C2E91859E975FC50D24433A8C1D33337B
ts_created: Fri Feb 16 16:48:45 2024 (1708130925)
Status: OPENED, amount: 0.000000000000000001 (1) tKEL, filled: 0.0%, rate (mtKEL/tKEL): 1.1, net: riemann
orderHash: 0x44AF014100898E1307E09570FCD9EC5FD633FE555A09A795948C88CAEA813885
ts_created: Mon Feb 19 23:53:15 2024 (1708415595)
Status: OPENED, amount: 0.000000000000000001 (1) tKEL, filled: 0.0%, rate (tKEL/tKEL): 1.0, net: riemann
orderHash: 0xE1BB55E0B8EBCFD2F654F0825EE64AE299AC661FB7BBE8377E1E5FFC508FC28C
ts_created: Wed Feb 28 21:30:42 2024 (1709184642)
Status: OPENED, amount: 0.5 (500000000000000000) mtKEL, filled: 50.0%, rate (tKEL/mtKEL): 2.0, net: riemann
orderHash: 0x72FBB3ED3708074B229D7D8D46404E26347AEEFB3EC2F3B56A0CD4BE4AD1BBFB
ts_created: Fri Mar 8 02:54:39 2024 (1709895279)
Status: OPENED, amount: 2.0 (2000000000000000000) tKEL, filled: 0.0%, rate (mtKEL/tKEL): 1.0, net: riemann
Found 5 orders
JSON-RPC Example
Command:
curl -X POST http://rpc.cellframe.net/connect -d '{"method":"srv_xchange", "params":["srv_xchange;orders;-net;riemann;-status;opened"], "id":"1"}'
Response:
{
"type": 0,
"result": "same as cli response",
"errors": null,
"id": 1
}