Creates a new order with specified amount of coins (in [[datoshi]]) to exchange within specified rate (`buy` / `sell`). ## Request Structure `JSON object:` ```JSON { "method": "srv_xchange", "subcommand": ["order","create"], "arguments": { "net": "network_name", "token_sell": "token_ticker", "token_buy": "token_ticker", "w": "wallet_name", "value": "value", "rate": "value", "fee": "value" }, "id": "1" } ``` `Parameters:` **`net (network_name)`** - name of the Cellframe Network. The list of networks can be found in the `<Config_dir> \ etc \ network` folder or received using - [[Node Command - NET LIST]] **`token_sell`** - ticker of token being sold **`token_buy`** - ticker of token being bought **`w`** - name of the wallet from where tokens will be taken **`value`** - amount of datoshi user wants to exchange **`rate`** - exchange rate (`buy` / `sell`) **`fee`** - comission in datoshi ### Curl Example `Request:` ```actionscript curl --unix-socket /opt/cellframe-node/var/run/node_cli -X POST http://localhost/connect -d '{ "method": "srv_xchange", "subcommand": ["order","create"], "arguments": { "net": "riemann", "token_sell": "tKEL", "token_buy": "CRINGE", "w": "wallet1", "value": "5.0e+18", "rate": "2.0", "fee": "0.5e+18" }, "id": "1" }' ``` `Response:` ```json { "type": 2, "result": [ { "status": "Successfully created", "sign": "", "hash": "0x68D7559147BF9D228A68FF53A3F2B4735377834ACF5DE6FC1095D48B1ECBF00D" } ], "id": 1 } ```