Skip to content

Commit

Permalink
remove excessive IsPostOnly check in ExchangeAPI.cs (DigitalRuby#717)
Browse files Browse the repository at this point in the history
- one too many IsPostOnly checks were added
  • Loading branch information
vslee authored and Plumbly committed Mar 13, 2022
1 parent ce2aac6 commit 0a4b3e6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/ExchangeSharp/API/Exchanges/_Base/ExchangeAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,6 @@ public virtual async Task<Dictionary<string, decimal>> GetMarginAmountsAvailable
public virtual async Task<ExchangeOrderResult> 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);
Expand Down

0 comments on commit 0a4b3e6

Please sign in to comment.