Skip to content

Commit

Permalink
deribit: add new Trade.block_trade_id field..
Browse files Browse the repository at this point in the history
  • Loading branch information
goodboy committed Mar 3, 2023
1 parent a67491a commit 52c51bd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
5 changes: 3 additions & 2 deletions piker/brokers/deribit/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,9 @@ class Trade(Struct):
index_price: float
direction: str
amount: float
combo_trade_id: Optional[int] = 0,
combo_id: Optional[str] = '',
combo_trade_id: Optional[int] = 0
combo_id: Optional[str] = ''
block_trade_id: str | None = ''


class LastTradesResult(Struct):
Expand Down
7 changes: 5 additions & 2 deletions piker/brokers/deribit/feed.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,12 @@
from cryptofeed.symbols import Symbol

from .api import (
Client, Trade,
Client,
Trade,
get_config,
str_to_cb_sym, piker_sym_to_cb_sym, cb_sym_to_deribit_inst,
str_to_cb_sym,
piker_sym_to_cb_sym,
cb_sym_to_deribit_inst,
maybe_open_price_feed
)

Expand Down

0 comments on commit 52c51bd

Please sign in to comment.