Added options symbols to get_assets

deribit_fix
Nelson Torres 2024-11-14 17:39:52 -03:00
parent 45788b0b53
commit 0916b707e2
1 changed files with 9 additions and 0 deletions

View File

@ -321,6 +321,15 @@ class Client:
name=name, name=name,
atype=atype, atype=atype,
tx_tick=tx_tick) tx_tick=tx_tick)
instruments = await self.symbol_info(currency=name.lower())
for instrument in instruments:
pair = instruments[instrument]
assets[pair.symbol] = Asset(
name=pair.symbol,
atype='option',
tx_tick=pair.size_tick)
return assets return assets
async def get_mkt_pairs(self) -> dict[str, Pair]: async def get_mkt_pairs(self) -> dict[str, Pair]: