pikers / piker

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

`kraken` position tracking gotchas #263

Closed goodboy closed 1 year ago

goodboy commented 2 years ago

As per discussion with @iamzoltan, the kraken api (and frankly their whole web UI system) is kind of a filthy mess that makes little sense compared with how most trades would expect to track positions in different "crypto$ assets" to be presented.

Most of the dirty details are in this article: https://support.kraken.com/hc/en-us/articles/203325683-Differences-between-spot-exchange-and-margin-trading

The main annoyance is that they don't seem to keep track of spot position "average price" information for your account and instead require API users to retrieve past trades and compute their own pp value.. Why they do offer pp tracking on margin trading positions but not spot is quite baffling and seems like just poor engineering (though not surprised, try using their charting platform 😹).

Things that are either confusing af or of note in their api:

goodboy commented 1 year ago

Pertinent content moved to #515