error in calling UnitConvert
Closed this issue · 1 comments
overstartup commented
var r= api.UnitConvert(OkexConvertType.CurrencyToContract, OkexConvertUnit.Usdt, Symbol, Price, OrderSizeUsdt);
decimal size = r.Data.Size;
Could you please check this method?
it has error.
{51000: Parameter unit error }
burakoner commented
api.UnitConvert(OkexConvertType.CurrencyToContract, instrumentId: "BTC-USD-SWAP", price: 35000, size: 0.888m);
This works perfect. Can you share your parameters please.