// where symbol like "ETHUSDT" // where side is OrderSide.Buy/OrderSide.Sell // where price like 390.19M // where amount like 0.1M public static ExchangeOrderResult PlaceOrder(IExchangeAPI api, string symbol, OrderSide side, decimal price, decimal amount) { var order = new ExchangeOrderRequest(); order.OrderType = OrderType.Limit; order.Symbol = symbol; order.Price = price; order.Amount = amount; order.IsBuy = side == OrderSide.Buy; order.ShouldRoundAmount = true; //order.RoundAmount(); //var parameters = order.ExtraParameters; //order.ExtraParameters["post_only"] = postOnly; return(api.PlaceOrder(order)); }