Adjust type annots in binance and IB symbol mods
Namely, again switching `|`-union syntax to rm adjacent white space. Also, flip to multiline style for threshold comparison in `.binance.feed` and change gap-check threshold to `timeframe` (vs a hardcoded `60`s) in the `get_ohlc()` closure. (this commit msg was generated in some part by [`claude-code`][claude-code-gh]) [claude-code-gh]: https://github.com/anthropics/claude-code
parent
b98c39598f
commit
3dad1c9835
|
|
@ -489,7 +489,6 @@ def con2fqme(
|
|||
@async_lifo_cache()
|
||||
async def get_mkt_info(
|
||||
fqme: str,
|
||||
|
||||
proxy: MethodProxy|None = None,
|
||||
|
||||
) -> tuple[MktPair, ibis.ContractDetails]:
|
||||
|
|
@ -551,7 +550,7 @@ async def get_mkt_info(
|
|||
size_tick: Decimal = Decimal(
|
||||
str(details.minSize).rstrip('0')
|
||||
)
|
||||
# |-> TODO: there is also the Contract.sizeIncrement, bt wtf is it?
|
||||
# ?TODO, there is also the Contract.sizeIncrement, bt wtf is it?
|
||||
|
||||
# NOTE: this is duplicate from the .broker.norm_trade_records()
|
||||
# routine, we should factor all this parsing somewhere..
|
||||
|
|
|
|||
Loading…
Reference in New Issue