kucoin: fix missing default fields def import
parent
94733c4a0b
commit
8de92179da
|
@ -55,14 +55,15 @@ from piker.accounting._mktinfo import (
|
||||||
digits_to_dec,
|
digits_to_dec,
|
||||||
MktPair,
|
MktPair,
|
||||||
)
|
)
|
||||||
from piker.data.validate import FeedInit
|
|
||||||
from piker import config
|
from piker import config
|
||||||
from piker._cacheables import (
|
from piker._cacheables import (
|
||||||
open_cached_client,
|
open_cached_client,
|
||||||
async_lifo_cache,
|
async_lifo_cache,
|
||||||
)
|
)
|
||||||
from piker.log import get_logger
|
from piker.log import get_logger
|
||||||
|
from piker.data.validate import FeedInit
|
||||||
from piker.data.types import Struct
|
from piker.data.types import Struct
|
||||||
|
from piker.data import def_iohlcv_fields
|
||||||
from piker.data._web_bs import (
|
from piker.data._web_bs import (
|
||||||
open_autorecon_ws,
|
open_autorecon_ws,
|
||||||
NoBsWs,
|
NoBsWs,
|
||||||
|
@ -524,7 +525,7 @@ class Client:
|
||||||
)
|
)
|
||||||
|
|
||||||
array = np.array(
|
array = np.array(
|
||||||
new_bars, dtype=_ohlc_dtype) if as_np else bars
|
new_bars, dtype=def_iohlcv_fields) if as_np else bars
|
||||||
return array
|
return array
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue