Looks up for orders using different filters

CLI Example

Command syntax:

net_srv order find
-net <net_name>  
[-direction {sell | buy}] 
[-srv_uid <service_UID>] 
[-price_unit <price_unit>] 
[-price_token <token_ticker>] 
[-price_min <price_minimum>] 
[-price_max <price_maximum>]

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
-direction {sell | buy} - direction of token exchange: sell - as provider, buy - as client (optional)
-srv_uid - UID of the service (optional)
-price_unit - set 'SECOND' for use seconds
-price_token - ticker of the token (optional)
-price_min - filtration by minimum order price (optional)
-price_max - filtration by maximum order price (optional)
 

Example:

Command:

cellframe-node-cli net_srv order find 
-direction sell 
-srv_uid 0x0000000000000001 
-price_unit SECOND 
-price_token tKEL  
-price_min 0.0 
-price_max 0.00003 
-net riemann 
-chain main

Response:

Found 21 orders:
 
== Order 0x9184E0FC994A9BA22C1235FA980AB174319E5DA5205775123826C99CA812E1FB ==
  version:          3
  direction:        SERV_DIR_SELL
  created:          Thu, 18 Apr 2024 23:49:30 -0700
  srv_uid:          0x0000000000000001
  price:            0.000000000000001 (1000)
  price_token:      tKEL
  units:            5242880
  price_unit:       SECOND
  node_addr:        E02A::FB56::1B0A::19C8
  node_location:    Europe - Germany
  tx_cond_hash:     0x0000000000000000000000000000000000000000000000000000000000000000
  ext:              0x52024765726D616E7900
  pkey:             0xE23EF5A0EA0604EADD74EB2F365809AE222EB88B7EA72C9ADA7AF8B78EA4E21E
 ...
  continue

JSON-RPC Example

Command:

curl --unix-socket /opt/cellframe-node/var/run/node_cli 
-X POST http://localhost/connect 
-d '{"method":"net_srv", "params":["net_srv;order;find;-direction;sell;-srv_uid;0x0000000000000001;-price_unit;SECOND;-price_token;tKEL; -price_min;0.0;-price_max;0.00003;-net;riemann;-chain;main"], "id":"1"}'

Response:

{ 
"type": 0,
"result": "Found 21 orders:\n== Order 0x9184E0FC994A9BA22C1235FA980AB174319E5DA5205775123826C99CA812E1FB ==\n  version:          3\n  direction:        SERV_DIR_SELL\n  created:          Thu, 18 Apr 2024 23:49:30 -0700\n  srv_uid:          0x0000000000000001\n  price:            0.000000000000001 (1000)\n  price_token:      tKEL\n  units:            5242880\n  price_unit:       SECOND\n  node_addr:        E02A::FB56::1B0A::19C8\n  node_location:    Europe - Germany\n  tx_cond_hash:     0x0000000000000000000000000000000000000000000000000000000000000000\n  ext:              0x52024765726D616E7900\n  pkey:             0xE23EF5A0EA0604EADD74EB2F365809AE222EB88B7EA72C9ADA7AF8B78EA4E21E\n
 

continue
,
"errors": null,
"id": 1 
}