piker/piker/brokers/deribit
Gud Boi 119d2c0495 Declare per-daemon-kind backend mod groups
Prep for the `brokerd` -> (`datad` + `brokerd`) actor split
by having each (split-style) backend declare which of its
submods host which daemon-kind's eps, exactly per the
`piker.data.validate._eps` groupings; `ib` already had
`_brokerd_mods`/`_datad_mods` so extend the convention to
`kraken`, `binance` and `deribit` (and add `'api'` to ib's
datad set since both kinds need the `Client` layer).

`__enable_modules__` stays as the (deduped) union so this
is a ZERO behavior change; flat backends (`kucoin` etc.)
just don't declare the split yet.

Also,
- add `validate.get_eps()` returning a backend's defined
  eps per daemon-kind for spawn-time introspection.
- import `NoBsWs`/`open_autorecon_ws` from
  `piker.data._web_bs` directly in `.kraken.broker` (they
  were only re-exported via `.kraken.feed`) so the trading
  mod doesn't depend on the feed mod for ws primitives.

(this patch was generated in some part by [`claude-code`][claude-code-gh])
[claude-code-gh]: https://github.com/anthropics/claude-code

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

Prompt-IO: ai/prompt-io/claude/20260610T171105Z_bc6e18d7_prompt_io.md
2026-06-10 13:11:42 -04:00
..
assets Add README.rst and brokers.toml section in config example 2022-08-24 18:09:35 -03:00
README.rst Fix link 2022-08-25 09:22:15 -03:00
__init__.py Declare per-daemon-kind backend mod groups 2026-06-10 13:11:42 -04:00
api.py Port service+tests to latest `tractor` APIs 2026-06-10 13:11:05 -04:00
feed.py Use `tractor.ipc._shm` types directly across codebase 2026-03-17 18:00:29 -04:00

README.rst

deribit backend ------------------pretty good liquidity crypto derivatives, uses custom json rpc over ws for client methods, then cryptofeed for data streams.

status

  • supports option charts
  • no order support yet

config

In order to get order mode support your brokers.toml needs to have something like the following:

[deribit]
key_id = 'XXXXXXXX'
key_secret = 'Xx_XxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXx'

To obtain an api id and secret you need to create an account, which can be a real market account over at:

  • deribit.com (requires KYC for deposit address)

Or a testnet account over at:

  • test.deribit.com

For testnet once the account is created here is how you deposit fake crypto to try it out:

  1. Go to Wallet:
  1. Then click on the elipsis menu and select deposit
  1. This will take you to the deposit address page

4) After clicking generate you should see the address, copy it and go to the coin faucet and send fake coins to that address.

  1. Back in the deposit address page you should see the deposit in your history