burakoner/OKEx.Net

error in calling UnitConvert

Closed this issue · 1 comments

 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 }

api.UnitConvert(OkexConvertType.CurrencyToContract, instrumentId: "BTC-USD-SWAP", price: 35000, size: 0.888m);
This works perfect. Can you share your parameters please.