From bca8af7bc674881beb257cb07d52788667877112 Mon Sep 17 00:00:00 2001 From: Victor Lee Date: Sun, 23 Jan 2022 21:37:18 -0800 Subject: [PATCH] remove excessive IsPostOnly check in ExchangeAPI.cs - one too many IsPostOnly checks were added --- src/ExchangeSharp/API/Exchanges/_Base/ExchangeAPI.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/ExchangeSharp/API/Exchanges/_Base/ExchangeAPI.cs b/src/ExchangeSharp/API/Exchanges/_Base/ExchangeAPI.cs index 386445b8..57c1c7ac 100644 --- a/src/ExchangeSharp/API/Exchanges/_Base/ExchangeAPI.cs +++ b/src/ExchangeSharp/API/Exchanges/_Base/ExchangeAPI.cs @@ -972,7 +972,6 @@ public virtual async Task> GetMarginAmountsAvailable public virtual async Task PlaceOrderAsync(ExchangeOrderRequest order) { // *NOTE* do not wrap in CacheMethodCall - if (order.IsPostOnly != null) throw new NotImplementedException("Post Only orders are not supported by this exchange or not implemented in ExchangeSharp. Please submit a PR if you are interested in this feature."); await new SynchronizationContextRemover(); order.MarketSymbol = NormalizeMarketSymbol(order.MarketSymbol); return await OnPlaceOrderAsync(order);