62 lines
1.5 KiB
Python
62 lines
1.5 KiB
Python
# piker: trading gear for hackers
|
|
# Copyright (C) Tyler Goodlet (in stewardship for pikers)
|
|
|
|
# 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/>.
|
|
|
|
'''
|
|
Kraken backend.
|
|
|
|
Sub-modules within break into the core functionalities:
|
|
|
|
- ``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``.
|
|
|
|
'''
|
|
|
|
from piker.log import get_logger
|
|
|
|
log = get_logger(__name__)
|
|
|
|
from .api import (
|
|
get_client,
|
|
)
|
|
from .feed import (
|
|
open_history_client,
|
|
open_symbol_search,
|
|
stream_quotes,
|
|
)
|
|
from .broker import (
|
|
trades_dialogue,
|
|
norm_trade_records,
|
|
)
|
|
|
|
__all__ = [
|
|
'get_client',
|
|
'trades_dialogue',
|
|
'open_history_client',
|
|
'open_symbol_search',
|
|
'stream_quotes',
|
|
'norm_trade_records',
|
|
]
|
|
|
|
|
|
# tractor RPC enable arg
|
|
__enable_modules__: list[str] = [
|
|
'api',
|
|
'feed',
|
|
'broker',
|
|
]
|