piker/piker/brokers/kraken/__init__.py

62 lines
1.5 KiB
Python
Raw Normal View History

2020-11-06 17:23:14 +00:00
# piker: trading gear for hackers
# Copyright (C) Tyler Goodlet (in stewardship for pikers)
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-07-04 22:59:02 +00:00
Kraken backend.
2022-06-29 17:24:47 +00:00
Sub-modules within break into the core functionalities:
2020-07-04 22:59:02 +00:00
2022-06-29 17:24:47 +00:00
- ``broker.py`` part for orders / trading endpoints
- ``feed.py`` for real-time data feed endpoints
- ``api.py`` for the core API machinery which is ``trio``-ized
wrapping around ``ib_insync``.
2022-06-29 17:24:47 +00:00
'''
from piker.log import get_logger
log = get_logger(__name__)
2022-06-29 17:24:47 +00:00
from .api import (
get_client,
)
from .feed import (
2022-06-29 17:24:47 +00:00
open_history_client,
open_symbol_search,
stream_quotes,
)
from .broker import (
trades_dialogue,
norm_trade_records,
)
2020-07-15 12:20:03 +00:00
2022-06-29 17:24:47 +00:00
__all__ = [
'get_client',
'trades_dialogue',
'open_history_client',
'open_symbol_search',
'stream_quotes',
'norm_trade_records',
2020-07-15 12:20:03 +00:00
]
2020-11-06 16:35:40 +00:00
2022-06-29 17:24:47 +00:00
# tractor RPC enable arg
__enable_modules__: list[str] = [
'api',
'feed',
2022-06-29 17:24:47 +00:00
'broker',
]