Skip to content

Kraken Refinement  #290

@iamzoltan

Description

@iamzoltan

To address issues that did not fit into the scope of PR #214 and tick off the remaining desired functionality from #201

  1. Get trades history asynchronously using nursery and the count:
  • not sure we need this yet since realistically we'll be incrementally capturing trades data in the new ledger system. if we get to the point where user's are complaining about ledger loading on first boot, this might be something worth revisiting.
  1. Change the dict merging for trades to the new syntax: https://github.com/pikers/piker/pull/214/files#r830525470 this code was all rewritten thus obsoleting this change request
  2. Get rid of the try except block in the positions calc: https://github.com/pikers/piker/pull/214/files#r830527334
  3. Change fixtures to accept kwargs: https://github.com/pikers/piker/pull/214/files#r817211683 instead just expect funtools.partial()-ing in of needed state.

Further follow up TODOs (added by @goodboy):

  • we should probably use one of their batch cancel endpoints in our Client.submit_cancel() such that cc and other automated strats can destroy order sets faster. -> turns out using the WS api makes this all fast enough to avoid needing the batch cancels (for now)
    • the other thing to investigate is whether the ws order entry API doesn't have these same issues with throttling (which one would assume since it's not an extra http request per request). -> it doesn't

Metadata

Metadata

Assignees

Labels

broker-backend`brokerd`/`datad` related backend techintegrationexternal stack and/or lib augmentations

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions