Skip to content

Commit

Permalink
Scheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
artemiusgreat committed Mar 26, 2024
1 parent d06f086 commit 9d21663
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Gateways/Alpaca/Libs/Adapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,8 @@ public override async Task<ResponseMapModel<OrderModel>> CreateOrders(params Ord
{
case OrderTypeEnum.Stop: await TradeClient.PostOrderAsync(OrderSide.Buy.Stop(name, amount, price)); break;
case OrderTypeEnum.Limit: await TradeClient.PostOrderAsync(OrderSide.Buy.Limit(name, amount, price)); break;
case OrderTypeEnum.StopLimit: await TradeClient.PostOrderAsync(OrderSide.Buy.StopLimit(name, amount, order.ActivationPrice, price); break;
case OrderTypeEnum.Market: await TradeClient.PostOrderAsync(OrderSide.Buy.Stop(name, amount, price); break;
case OrderTypeEnum.StopLimit: await TradeClient.PostOrderAsync(OrderSide.Buy.StopLimit(name, amount, (decimal)order.ActivationPrice, price)); break;
case OrderTypeEnum.Market: await TradeClient.PostOrderAsync(OrderSide.Buy.Market(name, amount)); break;
}
}
}
Expand Down

0 comments on commit 9d21663

Please sign in to comment.