piker icon indicating copy to clipboard operation
piker copied to clipboard

Deribit updates

Open goodboy opened this issue 2 years ago • 2 comments

Various updates since deribit was last authored / tested 😂 :

  • add deribit to our default backend scan list in piker.brokers.__brokers__: list[str]
  • fixes for new msgspec version namely ensuring default spec-ced fields are placed after fields with non-defaults.
  • API tweak to match new kwarg name in open_jsonrpc_session(): dtype -> response_type=JSONRPCResult
  • fix the Callable yielded from open_history_client() to accept the timeframe: float arg now required for multi-sample rate queries.

ToDo for this to land

  • [x] support and/or fix 1s OHLC chart sampling
    • [x] tread step size is borked when overlayed with btcusdt.binance? think it's fixed now after adjusting the history loader in bullet below?
    • [x] adjust the open_history_client() routine(s) to appropriately block on 1s history queries fixed in 47a4da9
  • [x] do a once over lint with at least flake8

goodboy avatar Feb 28 '23 05:02 goodboy

I'm going to do a bit more linting and testing of this code to see if we can get it up to snuff with the latest paper trading stuff in #462 as well 🏄🏼

goodboy avatar Feb 28 '23 16:02 goodboy

@guilledk where we at on this one carnal?

I kinda wanna play with some opts feeds this weekend 🏄🏼

goodboy avatar Apr 14 '23 18:04 goodboy