- ago
I work on a new Broker Adapter.
In GetActiveOrders() I go

CODE:
public override List<Transaction> GetActiveOrders() { .... Transaction tr = new(); tr.Messages.Add($"Reason: {osr.reason.Value}"); .... }


But when I view the order details in Order Manager there are no Messages displayed:


What is wrong?

0
64
Solved
3 Replies

Reply

Bookmark

Jump to End
Cone8
- ago
#1
Not enough information in the snippet, but probably you're not assigning all the properties (there's not even a symbol).
Definitely don't miss assigning this to tr.Broker.
0
Cone8
- ago
#2
Then again, I mocked up adding a message for GetActiveOrders() for a one of my brokers and the message was not retained for the transaction. We'll have to look into it!
0
Cone8
- ago
#3
Indeed, those Transaction Messages were being cleared after GetActiveOrders() - fixed for the next build.
1
Best Answer

Reply

Bookmark

Jump to Top