2021-02-22 22:28:34 +00:00
|
|
|
# piker: trading gear for hackers
|
|
|
|
# Copyright (C) Tyler Goodlet (in stewardship for piker0)
|
|
|
|
|
|
|
|
# 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/>.
|
|
|
|
|
|
|
|
"""
|
|
|
|
Market machinery for order executions, book, management.
|
|
|
|
|
|
|
|
"""
|
2023-03-22 15:48:35 +00:00
|
|
|
from ..log import get_logger
|
2023-04-04 17:14:23 +00:00
|
|
|
from ._client import (
|
|
|
|
open_ems,
|
|
|
|
OrderClient,
|
|
|
|
)
|
2023-06-12 23:51:55 +00:00
|
|
|
from ._ems import (
|
|
|
|
open_brokerd_dialog,
|
|
|
|
)
|
2023-06-19 15:44:28 +00:00
|
|
|
from ._util import OrderDialogs
|
2023-08-05 19:57:10 +00:00
|
|
|
from ._messages import(
|
|
|
|
Order,
|
|
|
|
Status,
|
|
|
|
Cancel,
|
|
|
|
|
|
|
|
# TODO: deprecate these and replace end-2-end with
|
|
|
|
# client-side-dialog set above B)
|
|
|
|
# https://github.com/pikers/piker/issues/514
|
|
|
|
BrokerdPosition
|
|
|
|
)
|
2023-01-24 20:12:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
__all__ = [
|
2023-08-05 19:57:10 +00:00
|
|
|
'FeeModel',
|
2023-01-24 20:12:32 +00:00
|
|
|
'open_ems',
|
2023-04-04 17:14:23 +00:00
|
|
|
'OrderClient',
|
2023-06-12 23:51:55 +00:00
|
|
|
'open_brokerd_dialog',
|
2023-06-19 15:44:28 +00:00
|
|
|
'OrderDialogs',
|
2023-08-05 19:57:10 +00:00
|
|
|
'Order',
|
|
|
|
'Status',
|
|
|
|
'Cancel',
|
|
|
|
'BrokerdPosition'
|
2023-04-04 17:14:23 +00:00
|
|
|
|
2023-01-24 20:12:32 +00:00
|
|
|
]
|
2023-03-22 15:48:35 +00:00
|
|
|
|
|
|
|
log = get_logger(__name__)
|