2020-11-06 17:23:14 +00:00
|
|
|
# piker: trading gear for hackers
|
2021-01-19 00:55:50 +00:00
|
|
|
# Copyright (C) Tyler Goodlet (in stewardship for piker0)
|
2020-11-06 17:23:14 +00:00
|
|
|
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU Affero General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU Affero General Public License for more details.
|
|
|
|
|
|
|
|
# You should have received a copy of the GNU Affero General Public License
|
|
|
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
|
2020-05-26 18:34:22 +00:00
|
|
|
"""
|
2021-04-15 14:42:44 +00:00
|
|
|
Data infra.
|
2020-05-26 18:34:22 +00:00
|
|
|
|
2020-08-02 00:08:05 +00:00
|
|
|
We provide tsdb integrations for retrieving
|
2020-07-15 12:22:09 +00:00
|
|
|
and storing data from your brokers as well as
|
2021-04-15 14:42:44 +00:00
|
|
|
sharing live streams over a network.
|
2021-03-31 18:19:48 +00:00
|
|
|
|
2020-05-26 18:34:22 +00:00
|
|
|
"""
|
2023-06-26 23:41:27 +00:00
|
|
|
from .ticktools import iterticks
|
2020-09-17 13:12:05 +00:00
|
|
|
from ._sharedmem import (
|
2020-09-22 16:14:24 +00:00
|
|
|
maybe_open_shm_array,
|
|
|
|
attach_shm_array,
|
|
|
|
open_shm_array,
|
|
|
|
get_shm_token,
|
2021-04-15 14:42:44 +00:00
|
|
|
ShmArray,
|
2020-09-17 13:12:05 +00:00
|
|
|
)
|
2023-05-31 16:11:52 +00:00
|
|
|
from ._source import (
|
2023-05-31 21:53:15 +00:00
|
|
|
def_iohlcv_fields,
|
|
|
|
def_ohlcv_fields,
|
2023-05-31 16:11:52 +00:00
|
|
|
)
|
2021-04-15 14:42:44 +00:00
|
|
|
from .feed import (
|
2023-06-26 19:21:30 +00:00
|
|
|
Feed,
|
2021-04-15 14:42:44 +00:00
|
|
|
open_feed,
|
2020-09-25 19:16:58 +00:00
|
|
|
)
|
2023-06-26 19:21:30 +00:00
|
|
|
from .flows import Flume
|
2023-07-17 05:20:52 +00:00
|
|
|
from ._symcache import (
|
|
|
|
SymbologyCache,
|
|
|
|
open_symcache,
|
|
|
|
get_symcache,
|
2023-09-22 17:53:18 +00:00
|
|
|
match_from_pairs,
|
2023-07-17 05:20:52 +00:00
|
|
|
)
|
2023-08-05 19:57:10 +00:00
|
|
|
from ._sampling import open_sample_stream
|
2023-09-22 17:53:18 +00:00
|
|
|
from ..types import Struct
|
2020-09-17 13:12:05 +00:00
|
|
|
|
2021-04-15 14:42:44 +00:00
|
|
|
|
2023-07-17 05:20:52 +00:00
|
|
|
__all__: list[str] = [
|
2023-06-26 19:21:30 +00:00
|
|
|
'Flume',
|
|
|
|
'Feed',
|
2021-04-15 14:42:44 +00:00
|
|
|
'open_feed',
|
|
|
|
'ShmArray',
|
2020-09-22 16:14:24 +00:00
|
|
|
'iterticks',
|
|
|
|
'maybe_open_shm_array',
|
2023-12-11 21:07:19 +00:00
|
|
|
'match_from_pairs',
|
2020-09-22 16:14:24 +00:00
|
|
|
'attach_shm_array',
|
|
|
|
'open_shm_array',
|
|
|
|
'get_shm_token',
|
2023-05-31 21:53:15 +00:00
|
|
|
'def_iohlcv_fields',
|
|
|
|
'def_ohlcv_fields',
|
2023-07-17 05:20:52 +00:00
|
|
|
'open_symcache',
|
2023-08-05 19:57:10 +00:00
|
|
|
'open_sample_stream',
|
2023-07-17 05:20:52 +00:00
|
|
|
'get_symcache',
|
2023-09-22 17:53:18 +00:00
|
|
|
'Struct',
|
2023-07-17 05:20:52 +00:00
|
|
|
'SymbologyCache',
|
2023-08-05 19:57:10 +00:00
|
|
|
'types',
|
2020-09-17 13:12:05 +00:00
|
|
|
]
|