- ago
I am testing out the new "Use Live Broker Position" feature in Build 28. In the past, I've noticed that the info displayed about positions in the "Accounts" window doesn't quite match reality, but it's never caused problems for me. I'm wondering if now that WL8 is attempting to sync with the Live Broker Position, if this inconsistent data is going to cause problems.

In the below image, note that my "basis price" for the XYO-USD position is incorrect. Also note that the PRMX-USDT position for KuCoin is not displayed. If I were to manually press the "Request Updates from Broker(s)" button, it would probably start showing up, but I'm wondering if this current situation is interfering with the "Use Live Broker Position" behavior, as the Accounts panel doesn't seem to yet be aware of the position.

0
416
6 Replies

Reply

Bookmark

Sort
Glitch8
 ( 7.81% )
- ago
#1
We can only work with what we get from the broker, and we do the best we can.
0
- ago
#2
Yes, I understand this and I greatly appreciate all of your efforts. Let me try rephrasing a bit:

1) Sometimes positions don't automatically appear in the "Accounts" window after the "Order Manager" successfully fills an order. However, if I manually "Request Updates from Broker(s)", it will appear. Is it possible for WL8 to automatically request these updates so that I don't have to manually press the button in order for WL8 to be aware of the Live Position?

2) Sometimes the basis price in the "Accounts" window is incorrect, even though the Fill Price is listed correctly in the "Order Manager". If there is no obvious bug that explains the incorrect "Basis Price", can WL8 just use the information from the Order Manager to override the faulty "Basis Price"?
0
Glitch8
 ( 7.81% )
- ago
#3
It gets complicated because an order manager fill maybe should not represent the basis price for an ENTIRE broker’s position. But on the other hand, Coinbase and Kucoin provide nothing in terms of basis price so we just default to recent price. Let me think about this.
1
- ago
#4
Thanks, much appreciated.

Just noting here, in case it's useful for future reference, a case that just happened where the position was sold successfully, but still appears in "Accounts". I usually only see this issue for position entries, but I guess it can occur for exits as well. It will probably be fixed once I press "Request Updates from Broker(s)".

Log file: https://www.dropbox.com/s/yx8r6likzu0ii8b/error_sell_position.txt?dl=0



0
Cone8
 ( 24.56% )
- ago
#5
Basis price aside, it seems that the bigger problem is updating the BrokerPosition after a trading action. Manually it works. Maybe that/those broker provider(s) should automatically periodically request Positions, especially right after a trading action.
1
Glitch8
 ( 7.81% )
- ago
#6
An account update request always occurs after a fill, at the base class level. It’s possible there’s some latency in these brokers affecting this.
1

Reply

Bookmark

Sort