Added options symbols to get_assets
parent
45788b0b53
commit
0916b707e2
|
@ -321,6 +321,15 @@ class Client:
|
|||
name=name,
|
||||
atype=atype,
|
||||
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
|
||||
|
||||
async def get_mkt_pairs(self) -> dict[str, Pair]:
|
||||
|
|
Loading…
Reference in New Issue