trading-engine-interface 0.56.25__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- trading_engine_interface/__init__.py +334 -0
- trading_engine_interface/common/__init__.py +0 -0
- trading_engine_interface/common/enums.py +163 -0
- trading_engine_interface/common/errors.py +259 -0
- trading_engine_interface/common/models/__init__.py +3 -0
- trading_engine_interface/common/models/base_api_model.py +14 -0
- trading_engine_interface/common/utils.py +20 -0
- trading_engine_interface/domain/__init__.py +8 -0
- trading_engine_interface/domain/fill_simulator.py +114 -0
- trading_engine_interface/domain/maker_fill.py +138 -0
- trading_engine_interface/domain/position_math.py +386 -0
- trading_engine_interface/examples/__init__.py +1 -0
- trading_engine_interface/examples/touch_bid_strategy.py +131 -0
- trading_engine_interface/py.typed +0 -0
- trading_engine_interface/runtime/__init__.py +32 -0
- trading_engine_interface/runtime/registry.py +298 -0
- trading_engine_interface/runtime/strategy.py +94 -0
- trading_engine_interface/trading_engine/__init__.py +0 -0
- trading_engine_interface/trading_engine/enums.py +284 -0
- trading_engine_interface/trading_engine/models/__init__.py +0 -0
- trading_engine_interface/trading_engine/models/accounting_models.py +412 -0
- trading_engine_interface/trading_engine/models/backtest_models.py +200 -0
- trading_engine_interface/trading_engine/models/market_models.py +452 -0
- trading_engine_interface/trading_engine/models/order_models.py +520 -0
- trading_engine_interface/trading_engine/models/position_breakdown_models.py +130 -0
- trading_engine_interface/trading_engine/models/position_models.py +230 -0
- trading_engine_interface/trading_engine/models/strategy_metrics_models.py +204 -0
- trading_engine_interface/trading_engine/models/strategy_models.py +1360 -0
- trading_engine_interface/trading_engine/order_rules.py +209 -0
- trading_engine_interface-0.56.25.dist-info/LICENSE +21 -0
- trading_engine_interface-0.56.25.dist-info/METADATA +112 -0
- trading_engine_interface-0.56.25.dist-info/RECORD +33 -0
- trading_engine_interface-0.56.25.dist-info/WHEEL +4 -0
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
"""Per-symbol order rules (tick size, precision, min/max quantity).
|
|
2
|
+
|
|
3
|
+
Defines the trading microstructure rules a strategy must respect when sizing
|
|
4
|
+
and pricing orders. Lives in the public interface so that both the engine and
|
|
5
|
+
the strategy package can reference the same rules without crossing package
|
|
6
|
+
boundaries.
|
|
7
|
+
|
|
8
|
+
Rules are **per base asset**, not per venue: a single rule per asset is applied
|
|
9
|
+
across all of that asset's pairs and is intended to be valid on every venue we
|
|
10
|
+
trade. Values are therefore the conservative cross-venue choice — the coarsest
|
|
11
|
+
tick / lowest precision / smallest min that satisfies every venue's filters, so
|
|
12
|
+
an order sized to the rule is never rejected for excess precision (worst case a
|
|
13
|
+
venue accepts a coarser-than-necessary price).
|
|
14
|
+
|
|
15
|
+
Coverage is required, not optional: ``get_order_rule`` raises on a symbol with
|
|
16
|
+
no rule rather than falling back to a default. A wrong default silently corrupts
|
|
17
|
+
order sizing and backtest fidelity; a loud failure names exactly what to add.
|
|
18
|
+
|
|
19
|
+
NOTE: the alt-coin tick/precision values below are conservative first-cut
|
|
20
|
+
estimates and should be verified against the live Binance/OKX symbol filters
|
|
21
|
+
before the symbol is enabled for production trading.
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
from decimal import Decimal
|
|
25
|
+
|
|
26
|
+
from trading_engine_interface.common.enums import Symbol
|
|
27
|
+
from trading_engine_interface.trading_engine.models.market_models import OrderRule
|
|
28
|
+
|
|
29
|
+
btc_usd_rule = OrderRule(
|
|
30
|
+
min_quantity=Decimal("0.0005"),
|
|
31
|
+
max_quantity=Decimal("1"),
|
|
32
|
+
# TODO: consider if we should use different tick sizes for different gateways
|
|
33
|
+
# tick_size=Decimal("0.01"),
|
|
34
|
+
# tick_size=Decimal("0.1"),
|
|
35
|
+
tick_size=Decimal("1"),
|
|
36
|
+
price_precision=2,
|
|
37
|
+
quantity_precision=5,
|
|
38
|
+
max_price_deviation=0.05,
|
|
39
|
+
)
|
|
40
|
+
eth_usd_rule = OrderRule(
|
|
41
|
+
min_quantity=Decimal("0.01"),
|
|
42
|
+
max_quantity=Decimal("10"),
|
|
43
|
+
tick_size=Decimal("0.1"),
|
|
44
|
+
price_precision=2,
|
|
45
|
+
quantity_precision=4,
|
|
46
|
+
max_price_deviation=0.05,
|
|
47
|
+
)
|
|
48
|
+
stable_coin_rule = OrderRule(
|
|
49
|
+
min_quantity=Decimal("1"),
|
|
50
|
+
max_quantity=Decimal("50000"),
|
|
51
|
+
tick_size=Decimal("0.00001"), # was 0.01 — BUS USDCUSDT PRICE_FILTER
|
|
52
|
+
price_precision=5, # was 2
|
|
53
|
+
quantity_precision=0, # was 2 — BUS LOT_SIZE step=1.0 (whole USDC); likely the err=5 rejects
|
|
54
|
+
max_price_deviation=0.1,
|
|
55
|
+
)
|
|
56
|
+
|
|
57
|
+
# --- Alt-coin rules (per base asset; conservative cross-venue values) --- #
|
|
58
|
+
# Grouped by price magnitude: higher-priced assets get a coarser tick + smaller
|
|
59
|
+
# min_quantity; sub-dollar assets get finer price precision + larger quantities.
|
|
60
|
+
|
|
61
|
+
bnb_rule = OrderRule(
|
|
62
|
+
min_quantity=Decimal("0.01"),
|
|
63
|
+
max_quantity=Decimal("200"),
|
|
64
|
+
tick_size=Decimal("0.1"),
|
|
65
|
+
price_precision=2,
|
|
66
|
+
quantity_precision=3,
|
|
67
|
+
max_price_deviation=0.1,
|
|
68
|
+
)
|
|
69
|
+
sol_rule = OrderRule(
|
|
70
|
+
min_quantity=Decimal("0.05"),
|
|
71
|
+
max_quantity=Decimal("1000"),
|
|
72
|
+
tick_size=Decimal("0.01"),
|
|
73
|
+
price_precision=2,
|
|
74
|
+
quantity_precision=2,
|
|
75
|
+
max_price_deviation=0.1,
|
|
76
|
+
)
|
|
77
|
+
xmr_rule = OrderRule(
|
|
78
|
+
min_quantity=Decimal("0.01"),
|
|
79
|
+
max_quantity=Decimal("1000"),
|
|
80
|
+
tick_size=Decimal("0.1"),
|
|
81
|
+
price_precision=2,
|
|
82
|
+
quantity_precision=3,
|
|
83
|
+
max_price_deviation=0.1,
|
|
84
|
+
)
|
|
85
|
+
ltc_rule = OrderRule(
|
|
86
|
+
min_quantity=Decimal("0.01"),
|
|
87
|
+
max_quantity=Decimal("5000"),
|
|
88
|
+
tick_size=Decimal("0.01"),
|
|
89
|
+
price_precision=2,
|
|
90
|
+
quantity_precision=3,
|
|
91
|
+
max_price_deviation=0.1,
|
|
92
|
+
)
|
|
93
|
+
zec_rule = OrderRule(
|
|
94
|
+
min_quantity=Decimal("0.01"),
|
|
95
|
+
max_quantity=Decimal("5000"),
|
|
96
|
+
tick_size=Decimal("0.01"),
|
|
97
|
+
price_precision=2,
|
|
98
|
+
quantity_precision=3,
|
|
99
|
+
max_price_deviation=0.1,
|
|
100
|
+
)
|
|
101
|
+
hype_rule = OrderRule(
|
|
102
|
+
min_quantity=Decimal("0.1"),
|
|
103
|
+
max_quantity=Decimal("10000"),
|
|
104
|
+
tick_size=Decimal("0.001"),
|
|
105
|
+
price_precision=3,
|
|
106
|
+
quantity_precision=2,
|
|
107
|
+
max_price_deviation=0.1,
|
|
108
|
+
)
|
|
109
|
+
avax_rule = OrderRule(
|
|
110
|
+
min_quantity=Decimal("0.1"),
|
|
111
|
+
max_quantity=Decimal("20000"),
|
|
112
|
+
tick_size=Decimal("0.01"),
|
|
113
|
+
price_precision=2,
|
|
114
|
+
quantity_precision=2,
|
|
115
|
+
max_price_deviation=0.1,
|
|
116
|
+
)
|
|
117
|
+
link_rule = OrderRule(
|
|
118
|
+
min_quantity=Decimal("0.1"),
|
|
119
|
+
max_quantity=Decimal("50000"),
|
|
120
|
+
tick_size=Decimal("0.001"),
|
|
121
|
+
price_precision=3,
|
|
122
|
+
quantity_precision=2,
|
|
123
|
+
max_price_deviation=0.1,
|
|
124
|
+
)
|
|
125
|
+
xrp_rule = OrderRule(
|
|
126
|
+
min_quantity=Decimal("1"),
|
|
127
|
+
max_quantity=Decimal("100000"),
|
|
128
|
+
tick_size=Decimal("0.0001"),
|
|
129
|
+
price_precision=4,
|
|
130
|
+
quantity_precision=1,
|
|
131
|
+
max_price_deviation=0.1,
|
|
132
|
+
)
|
|
133
|
+
ada_rule = OrderRule(
|
|
134
|
+
min_quantity=Decimal("1"),
|
|
135
|
+
max_quantity=Decimal("500000"),
|
|
136
|
+
tick_size=Decimal("0.0001"),
|
|
137
|
+
price_precision=4,
|
|
138
|
+
quantity_precision=1,
|
|
139
|
+
max_price_deviation=0.1,
|
|
140
|
+
)
|
|
141
|
+
trx_rule = OrderRule(
|
|
142
|
+
min_quantity=Decimal("1"),
|
|
143
|
+
max_quantity=Decimal("1000000"),
|
|
144
|
+
tick_size=Decimal("0.00001"),
|
|
145
|
+
price_precision=5,
|
|
146
|
+
quantity_precision=1,
|
|
147
|
+
max_price_deviation=0.1,
|
|
148
|
+
)
|
|
149
|
+
doge_rule = OrderRule(
|
|
150
|
+
min_quantity=Decimal("1"),
|
|
151
|
+
max_quantity=Decimal("1000000"),
|
|
152
|
+
tick_size=Decimal("0.00001"),
|
|
153
|
+
price_precision=5,
|
|
154
|
+
quantity_precision=0,
|
|
155
|
+
max_price_deviation=0.1,
|
|
156
|
+
)
|
|
157
|
+
xlm_rule = OrderRule(
|
|
158
|
+
min_quantity=Decimal("1"),
|
|
159
|
+
max_quantity=Decimal("1000000"),
|
|
160
|
+
tick_size=Decimal("0.00001"),
|
|
161
|
+
price_precision=5,
|
|
162
|
+
quantity_precision=0,
|
|
163
|
+
max_price_deviation=0.1,
|
|
164
|
+
)
|
|
165
|
+
|
|
166
|
+
ORDER_RULES: dict[Symbol, OrderRule] = {
|
|
167
|
+
Symbol.BTC_USD: btc_usd_rule,
|
|
168
|
+
Symbol.BTC_USDT: btc_usd_rule,
|
|
169
|
+
Symbol.BTC_USDC: btc_usd_rule,
|
|
170
|
+
Symbol.ETH_USD: eth_usd_rule,
|
|
171
|
+
Symbol.ETH_USDT: eth_usd_rule,
|
|
172
|
+
Symbol.ETH_USDC: eth_usd_rule,
|
|
173
|
+
Symbol.USDT_USD: stable_coin_rule,
|
|
174
|
+
Symbol.USDC_USD: stable_coin_rule,
|
|
175
|
+
Symbol.USDT_USDC: stable_coin_rule,
|
|
176
|
+
Symbol.USDC_USDT: stable_coin_rule,
|
|
177
|
+
# Alts (per base asset)
|
|
178
|
+
Symbol.BNB_USDT: bnb_rule,
|
|
179
|
+
Symbol.SOL_USDT: sol_rule,
|
|
180
|
+
Symbol.XMR_USDT: xmr_rule,
|
|
181
|
+
Symbol.LTC_USDT: ltc_rule,
|
|
182
|
+
Symbol.ZEC_USDT: zec_rule,
|
|
183
|
+
Symbol.HYPE_USDC: hype_rule,
|
|
184
|
+
Symbol.HYPE_USDT: hype_rule,
|
|
185
|
+
Symbol.AVAX_USDT: avax_rule,
|
|
186
|
+
Symbol.LINK_USDT: link_rule,
|
|
187
|
+
Symbol.XRP_USDT: xrp_rule,
|
|
188
|
+
Symbol.ADA_USDT: ada_rule,
|
|
189
|
+
Symbol.TRX_USDT: trx_rule,
|
|
190
|
+
Symbol.DOGE_USDT: doge_rule,
|
|
191
|
+
Symbol.XLM_USDT: xlm_rule,
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
def get_order_rule(symbol: Symbol) -> OrderRule:
|
|
196
|
+
"""Return the order rule for ``symbol``, or raise a clear error if absent.
|
|
197
|
+
|
|
198
|
+
Use this everywhere instead of indexing ``ORDER_RULES`` directly: a symbol
|
|
199
|
+
with no rule must fail loud and named (so the missing rule is obvious and
|
|
200
|
+
addable), never silently fall back to a wrong default that would mis-size
|
|
201
|
+
orders and corrupt backtest fidelity.
|
|
202
|
+
"""
|
|
203
|
+
rule = ORDER_RULES.get(symbol)
|
|
204
|
+
if rule is None:
|
|
205
|
+
raise ValueError(
|
|
206
|
+
f"No ORDER_RULES entry for {symbol.value}. Add a per-asset rule in "
|
|
207
|
+
f"order_rules.py before trading or backtesting this symbol."
|
|
208
|
+
)
|
|
209
|
+
return rule
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Martian Mobile
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
|
+
Name: trading-engine-interface
|
|
3
|
+
Version: 0.56.25
|
|
4
|
+
Summary: Strategy contract for the Martian Mobile trading engine: StrategyProtocol, models, enums and the maker-fill kernel
|
|
5
|
+
License: MIT
|
|
6
|
+
Author: Martian Mobile
|
|
7
|
+
Author-email: help@martianmobile.com
|
|
8
|
+
Requires-Python: >=3.12,<4.0
|
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
13
|
+
Requires-Dist: httpx (>=0.25,<1)
|
|
14
|
+
Requires-Dist: pydantic (>=2.7,<3)
|
|
15
|
+
Project-URL: Backtest runner, https://github.com/martianmobile/backtest2live
|
|
16
|
+
Project-URL: Homepage, https://martianmobile.com
|
|
17
|
+
Description-Content-Type: text/markdown
|
|
18
|
+
|
|
19
|
+
# trading-engine-interface
|
|
20
|
+
|
|
21
|
+
The strategy contract of the Martian Mobile trading engine. A strategy written against this package is written against the contract the engine itself runs: same `StrategyProtocol`, same input and output models, same venue and symbol enums.
|
|
22
|
+
|
|
23
|
+
What is in it:
|
|
24
|
+
|
|
25
|
+
| Module | What it is |
|
|
26
|
+
|---|---|
|
|
27
|
+
| `trading_engine_interface.runtime` | `StrategyProtocol` (the type the engine checks every strategy against), `register_strategy`, the strategy registry |
|
|
28
|
+
| `trading_engine_interface.trading_engine.models` | `StrategyInput` (order books, klines, public trades, positions, open orders, balances), `StrategyOutput` (orders to create, cancel, replace), configs, positions, fills |
|
|
29
|
+
| `trading_engine_interface.domain` | The maker-fill kernel (trade-through, OPTIMISTIC / CONSERVATIVE band), fill simulator, position math |
|
|
30
|
+
| `trading_engine_interface.common` | Enums (`VenueName`, `Symbol`, `Asset`, `TimeInterval`), errors, base model |
|
|
31
|
+
|
|
32
|
+
The fill kernel is mechanism only. Calibrated fill curves are not part of this package.
|
|
33
|
+
|
|
34
|
+
## Install
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
pip install trading-engine-interface
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Python 3.12 or later.
|
|
41
|
+
|
|
42
|
+
## Quickstart
|
|
43
|
+
|
|
44
|
+
A strategy is any class that structurally satisfies `StrategyProtocol`: a `VERSION`, a `fees` attribute, and `decide`, `close_position` and `flush_output`. Register it with `@register_strategy(config=...)` so the engine can find the class and its config.
|
|
45
|
+
|
|
46
|
+
The smallest complete one is installed with the package, as `trading_engine_interface.examples.touch_bid_strategy`. It rests one limit buy at the best bid on every venue its config allows:
|
|
47
|
+
|
|
48
|
+
```python
|
|
49
|
+
class TouchBidConfig(BaseStrategyConfig):
|
|
50
|
+
class_type: str = "TouchBidStrategy"
|
|
51
|
+
position: PositionParams = PositionParams()
|
|
52
|
+
quantity: Decimal = Decimal("0.001")
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
@register_strategy(config=TouchBidConfig)
|
|
56
|
+
class TouchBidStrategy:
|
|
57
|
+
VERSION: int = 1
|
|
58
|
+
|
|
59
|
+
def decide(self, input_data: StrategyInput, predictions: Optional[StrategyPredictions] = None) -> StrategyOutput:
|
|
60
|
+
if input_data.open_orders:
|
|
61
|
+
return self.flush_output(skip_reason=SkipReason.OPEN_ORDERS)
|
|
62
|
+
for symbol, venues in self.config.symbol_to_venues.items():
|
|
63
|
+
for venue in venues:
|
|
64
|
+
book = input_data.market_data.order_books.get(symbol, {}).get(venue)
|
|
65
|
+
bid = book.best_bid_price if book else None
|
|
66
|
+
if bid is not None:
|
|
67
|
+
self._output.create_orders.append(
|
|
68
|
+
CreateOrderRequest(venue=venue, symbol=symbol, order_type=OrderType.LIMIT,
|
|
69
|
+
side=Side.BUY, quantity=self.config.quantity, price=bid)
|
|
70
|
+
)
|
|
71
|
+
return self.flush_output(skip_reason=None if self._output.create_orders else SkipReason.NO_DATA)
|
|
72
|
+
...
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Run it once against a hand-built order book:
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
python -m trading_engine_interface.examples.touch_bid_strategy
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
Type-check it the way the engine does. `mypy --strict` fails if the class drifts from `StrategyProtocol`:
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
mypy --strict -m trading_engine_interface.examples.touch_bid_strategy
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## Backtest it
|
|
88
|
+
|
|
89
|
+
A backtest runner builds your config itself, from the venues, symbols and risk limits you pass on the command line. Two things in the config class make that possible, and the example has both:
|
|
90
|
+
|
|
91
|
+
- `class_type` defaults to the strategy's class name. That is how a runner finds the config that belongs to a strategy.
|
|
92
|
+
- `position` has a default. `BaseStrategyConfig` requires it, and a runner does not supply one.
|
|
93
|
+
|
|
94
|
+
The runner replays public market data through the same `decide` the engine calls, on simulated time, and fills orders with the kernel in `trading_engine_interface.domain`. The runner is not part of this package. It is coming as `bt2live run` in [backtest2live](https://github.com/martianmobile/backtest2live); until that release, this package gives you the contract and the example, not a backtest command.
|
|
95
|
+
|
|
96
|
+
## Rules a strategy must follow
|
|
97
|
+
|
|
98
|
+
- A strategy is constructed once with its config. Each `decide` call receives everything it may use: market data, its position, its open orders and its balances.
|
|
99
|
+
- No network calls and no files. A strategy that needs data it is not given cannot run on a hosted engine.
|
|
100
|
+
- Keep no state of your own between calls. Decide from the `StrategyInput` you are given.
|
|
101
|
+
- `decide` is synchronous. Read time through `trading_engine_interface.now()`, never the system clock: the backtest replays on simulated time by patching it. Everything else a decision needs arrives in `StrategyInput` and `StrategyPredictions`.
|
|
102
|
+
- Set `StrategyOutput.skip_reason` on every path that returns no orders. A quiet strategy without a reason reads as uninstrumented, not as "found nothing".
|
|
103
|
+
- Bump `VERSION` when the decision logic changes.
|
|
104
|
+
|
|
105
|
+
## Versioning
|
|
106
|
+
|
|
107
|
+
The version number is the version of the contract the engine runs. Before 1.0 the contract can change between releases, so pin the exact version you build against.
|
|
108
|
+
|
|
109
|
+
## Licence
|
|
110
|
+
|
|
111
|
+
MIT. The licence text is installed with the package.
|
|
112
|
+
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
trading_engine_interface/__init__.py,sha256=njdIPgSF9eU4TAOJa8CrX5fmO7UvA6tG-tG1KZU4LSs,7887
|
|
2
|
+
trading_engine_interface/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
+
trading_engine_interface/common/enums.py,sha256=or2pZKrQs4bBRD3xNGcQDcremHABCkp8uYoabB03qFY,4560
|
|
4
|
+
trading_engine_interface/common/errors.py,sha256=uyR30lnjE_EL-PzPHO_bCSd7evJUAbDnYXa8hlFXPw0,7630
|
|
5
|
+
trading_engine_interface/common/models/__init__.py,sha256=ODQmVvjlPJtLO0hqlPx8WjxTT0sd3j9UJ3DpcO0QTus,15
|
|
6
|
+
trading_engine_interface/common/models/base_api_model.py,sha256=wMBfNsfVFMiIaFWCnOpPr5R-MCKJeIYgbWrx_soW6N8,316
|
|
7
|
+
trading_engine_interface/common/utils.py,sha256=vN9GyVds2hBcM_4gwcTpIH4O0Z957dluxeYaES2lfMc,323
|
|
8
|
+
trading_engine_interface/domain/__init__.py,sha256=PgcgyeKfL6t7ZU50tmMuMWBTCp-vp44FUKcgJjmXJHM,485
|
|
9
|
+
trading_engine_interface/domain/fill_simulator.py,sha256=eY8N1L0G-xoD6wNfpyzXnwRnvP_EOEOskz7pUqci6jQ,3815
|
|
10
|
+
trading_engine_interface/domain/maker_fill.py,sha256=6NZVM02hEARYQZZCoOq6o1vIiIfu_dAn7OHYjQA-V3s,6384
|
|
11
|
+
trading_engine_interface/domain/position_math.py,sha256=SnbYTptEIOENHC0_HKCg3LjPLkAx9XYUXt3SyYD8KSk,18538
|
|
12
|
+
trading_engine_interface/examples/__init__.py,sha256=YysrLG6wKmvwLCtQSalbufk00ZXbricst2Hv8qVcHHc,55
|
|
13
|
+
trading_engine_interface/examples/touch_bid_strategy.py,sha256=nn8ykBgHhNmNPuO3fp3O1arZutxDxDy-Ek6V_zRkNRI,4763
|
|
14
|
+
trading_engine_interface/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
15
|
+
trading_engine_interface/runtime/__init__.py,sha256=lh3XjkaPQ0J5k4MWR7coqsPzqUmUTEi_gX7GyXMCpBs,997
|
|
16
|
+
trading_engine_interface/runtime/registry.py,sha256=C43nFWHWkjvoJzqPzZNQqZ4iPN26t8gLdaLqGcBu3Mo,12292
|
|
17
|
+
trading_engine_interface/runtime/strategy.py,sha256=FTkdGeLjLBNiEQmlYOmb9UnprP1YtNI2h1Qbmc80Y9Q,3654
|
|
18
|
+
trading_engine_interface/trading_engine/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
19
|
+
trading_engine_interface/trading_engine/enums.py,sha256=7ey3pqmuFUTihUByWeuypyUHlV7YtaC_dWlXHRyeSBM,9044
|
|
20
|
+
trading_engine_interface/trading_engine/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
21
|
+
trading_engine_interface/trading_engine/models/accounting_models.py,sha256=GDk6DuZcMQVCID_DLU5-YkP3xswG5IbMK_-CUbrxJcM,16629
|
|
22
|
+
trading_engine_interface/trading_engine/models/backtest_models.py,sha256=7FX9gHNBCikDoJUJDLE6RD6QszsXavJcxRX6ajeZR-Y,8974
|
|
23
|
+
trading_engine_interface/trading_engine/models/market_models.py,sha256=fQsbVqxlSgnnB2xdngvgFHvf8nny464UNAVQJF3plXc,16227
|
|
24
|
+
trading_engine_interface/trading_engine/models/order_models.py,sha256=ejpCo22wTWW8zAnJRfgr5DrB7xroNf6wYDULYFfKKfU,23202
|
|
25
|
+
trading_engine_interface/trading_engine/models/position_breakdown_models.py,sha256=ourUxARHrG0nVeOKtoDovr_E5Wf0KC6AnK19IdzvoAc,5726
|
|
26
|
+
trading_engine_interface/trading_engine/models/position_models.py,sha256=fPS_ei5HRqp3XIOfvP4W3E9RhyeprlkuWSq9Tia7D1Y,9415
|
|
27
|
+
trading_engine_interface/trading_engine/models/strategy_metrics_models.py,sha256=N5sWmZdufNCDxeyhkg0pVfCdVaqPoTki64FGF2TL9rE,7999
|
|
28
|
+
trading_engine_interface/trading_engine/models/strategy_models.py,sha256=13ALI9UY6NsgQ9AbVWw2G8QWnNKuq19NUjJNeHhnMjM,60816
|
|
29
|
+
trading_engine_interface/trading_engine/order_rules.py,sha256=MgjRnG1RBSPy3akIdPzEJZYWOOiHPLOA9n9aizXKVKU,6692
|
|
30
|
+
trading_engine_interface-0.56.25.dist-info/LICENSE,sha256=ESmBtKQy0a1E-dcresmJrP7DJEr-0eRHTfcmgWd1zjo,1071
|
|
31
|
+
trading_engine_interface-0.56.25.dist-info/METADATA,sha256=debMOst6pztwJkE0ACkn71MogsmDlJluuYav9liHjrQ,5733
|
|
32
|
+
trading_engine_interface-0.56.25.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
33
|
+
trading_engine_interface-0.56.25.dist-info/RECORD,,
|