Algorithmic Trading Platform

Contracts / Interface

Overview

Pluggable integration point for execution venues. Implemented by the Execution Simulator in the prototype.

Contract

Consumers

  • ExecutionSimulator

Types

NameBaseConstraints / ValuesDescription
FillResultdataclass—Result returned by submit_order()

Operations

update_price

Notify the adapter of the latest market price for a symbol. Called on every MarketTick.

ParameterTypeRequiredConstraints
symbolstr✓—
pricefloat✓—

Returns: None

submit_order

Submit an order for execution and return the fill result. Synchronous for paper trading.

ParameterTypeRequiredConstraints
orderOrder✓—

Returns: FillResult — Fill price, quantity, commission, and partial flag

Referenced By 1

Architecture