public async Task <CallResult <List <KunaPlacedOrderV2> > > GetMyOrdersV2Async(string market, KunaOrderStateV2 orderState = KunaOrderStateV2.Wait, int page = 1, string sort = "desc", CancellationToken ct = default) { var parameters = new Dictionary <string, object>() { { "market", market }, { "state", JsonConvert.SerializeObject(orderState, new OrderStatusV2Converter()) }, { "order_by", sort }, { "page", page } }; return(await SendRequestAsync <List <KunaPlacedOrderV2> >(GetUrl(OrdersV2Endpoint), HttpMethod.Get, ct, parameters, true).ConfigureAwait(false)); }
public CallResult <List <KunaPlacedOrderV2> > GetMyOrdersV2(string market, KunaOrderStateV2 orderState = KunaOrderStateV2.Wait, int page = 1, string sort = "desc") => GetMyOrdersV2Async(market, orderState, page, sort).Result;