alpacahq / alpacahq/alpaca-trade-api-csharp

🚧 ClientOrderId propagation 🚧

Đang mở
#617 3 bình luận 0 reaction 1 người được giao Được giao cho @OlegRa Xem trên GitHub
enhancement
Ngôn ngữ chính
C#
Star
301
Fork
96
Merge trung bình
4 ngày 5 giờ
Pull request đã merge (30 ngày)
5

Mô tả

Hello, I am using the ClientOrderId for propagation to help me determine bracket success and failures. I have noticed that when i set the ClientOrderId in a BracketOrder.WithClientOrderId, this value DOES NOT end up anywhere in the streamingClient.OnTradeUpdate. I either just simply do not understand its purpose or there is a bug. The ITradeUpdate.Order object does not contain the value that i specified, it does have a random Guid, but not the value i added., For example the value i specified was like this "TSLA-[SOME GUID]-T1" this allowed me to know that my target 1 of a bracket order had been hit. Upon further investigation, it should be noted this is ONLY a problem when a target or stoploss is hit, that is when a seemingly random id is generated for the ClientOrderId, and not MY specified ClientOrderId. my code looks at this if (tu.PositionQuantity == 0) (tu being ITradeUpdate)

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.