Skip to content

OrderType is Market but it places a limit buy order? #584

Closed
@diogoribeirodev

Description

@diogoribeirodev

Hi, i am facing a problem. I am trying to place a market order and after that show the order details on the console! But idk why the function is placing a limit buy order, and because of that i am not able to pull some details about the order such as amount filled, price and fees. I'll attach the code! Am i doing something wrong?Is this a bug?

ExchangeTicker ticker = kucoin.GetTickerAsync("XLM-USDT").Sync();
ExchangeOrderResult result = kucoin.PlaceOrderAsync(new ExchangeOrderRequest
{

            Amount = 1,
            OrderType = OrderType.Market,
            IsBuy = true,
            Price = ticker.Ask,
            MarketSymbol = "XLM-USDT"
        }).Sync();
        System.Threading.Thread.Sleep(500);
        var orderdetails = kucoin.GetOrderDetailsAsync(result.OrderId).Sync();
         Console.WriteLine("Average Price: " + orderdetails.AveragePrice);
         Console.WriteLine("Amount Filled: " + orderdetails.AmountFilled);
         Console.WriteLine("Fee Currency: " + orderdetails.FeesCurrency + "\n" + "Total Fees: " + orderdetails.Fees);
         Console.WriteLine("Order Date: " + orderdetails.OrderDate);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions