Files
FX-ML-Trading-Engine/QuantTrader/execution/__pycache__/adapter.cpython-312.pyc
T

27 lines
5.0 KiB
Plaintext
Raw Normal View History

2025-11-14 22:56:44 +00:00
Ë
i¿ ãódZddlmZddlZddlmZmZddlmZddlm Z m
Z
eGdd««Z eGd „d
««Z eGd d ««Z
eGd
d««ZeGdd««ZGddej «ZGdde«Zy)z9Execution adapter interfaces and data models for Phase 3.é)Ú annotationsN)Ú dataclassÚfield)Údatetime)ÚDictÚOptionalcódeZdZUded<ded<ded<dZded<d Zded
<dZd ed <dZd
ed<y)Ú OrderParamsÚstrÚsymbolÚsideÚfloatÚquantityNzOptional[float]ÚpriceÚGTCÚtifú
Optional[str]Úclient_order_idzOptional[Dict[str, str]]Úmetadata)Ú__name__Ú
__module__Ú __qualname__Ú__annotations__rrrr©óúL/Users/chuan/Documents/Projects/FX_Backtest/QuantTrader/execution/adapter.pyr
r
s:à ƒKØ
ƒI؃OØ!€Eˆ?Ó€CˆÓØ%)€O)Ø)-€HÐ-rr
có:eZdZUded<ded<ded<dZded<y) ÚOrderAckr Úorder_idÚstatusrÚ timestampNrÚreason©rrrrr"rrrrróàƒMØ ƒKØÓØ €FˆMÔ rrcó:eZdZUded<ded<ded<dZded<y) Ú CancelAckr rr rr!Nrr"r#rrrr&r&r$rr&cóTeZdZUded<ded<ded<ded<ded<ded<d ed
<y ) Ú FillEventr rÚfill_idr r
rrrrr!N)rrrrrrrr(r(&s&àƒMØ
ƒLØ ƒKØ
ƒI؃OØ ƒLØÔrr(có:eZdZUded<ded<ded<dZded<y) Ú
PositionStater r rrÚ avg_pricegÚunrealized_pnlN)rrrrr-rrrr+r+1sà ƒK؃OØÓØ€Nrr+có¨eZdZdZej
dd«Zej
dd«Zej
d d«Zej
d
d«Z y) ÚExecutionAdapterz5Abstract interface for broker/order routing adapters.cóy)z Submit a new order to the venue.Nr)ÚselfÚorders rÚsubmitzExecutionAdapter.submit<órcóy)zCancel an existing order.Nr)r1rs rÚcancelzExecutionAdapter.cancel@r4rcóy)z Return latest position snapshot.Nr©r1s rÚsync_positionszExecutionAdapter.sync_positionsDr4rcóy)zQuick connectivity check.Nrr8s rÚ heartbeatzExecutionAdapter.heartbeatHr4rr2r