Function wex::trade
[−]
[src]
pub fn trade(
account: &Account,
pair: &str,
kind: OrderType,
rate: &str,
amount: &str
) -> Result<TradeResult, String>
Create orders.
You can only create limit orders using this method, but you can emulate market orders using rate parameters. E.g. using rate=0.1 you can sell at the best market price. Each pair has a different limit on the minimum / maximum amounts, the minimum amount and the number of digits after the decimal point. All limitations can be obtained using the info method in PublicAPI v3.