pikers / piker

(e2e) foss trading for non-tinas
GNU Affero General Public License v3.0
103 stars 17 forks source link

`kraken`: balance <-> position disparities with crypto/crypto pairs #373

Closed goodboy closed 1 year ago

goodboy commented 2 years ago

Discovered by @iamzoltan and not surprising since i never tested any of this in the development of #349. The plan is to land that PR despite this issue (since master has a half working / bug filled order mode for kraken right now) and resolve this in post mortem fixes.


issue descr

More or less there seems to be the ValueError raised from the pp validation logic section of trades_dialogue() but reproducing this requires a ledger with the appropriate intercrypto pair transactions.


Solutions/TODO:


traceback

goodboy commented 1 year ago

I got something similar due to a couple different issues, so here is a (partial) follow up TODO list:



goodboy commented 1 year ago

ergg,

found another after a recent xrp transfer..


Traceback (most recent call last):
  File "/home/goodboy/repos/tractor/tractor/_runtime.py", line 196, in _invoke
    res = await coro
  File "/home/goodboy/repos/piker/piker/brokers/kraken/broker.py", line 609, in trades_dialogue
    raise ValueError(
ValueError: Could not reproduce balance:
dst: xrp, 7.78e-06
goodboy commented 1 year ago

Closed in favor of #515