Skip to main content
Package containing trading functionality for creating and managing orders, positions, and commissions in Indie trading strategies.

Types

AmendOrderBuilder

type Builder class for modifying existing trading orders with updated parameters.

Methods


Commission

type Represents trading commission settings with configurable commission type and value.

Methods


ExitOrder

type Represents exit order settings for take profit and stop loss.

Fields


InstrumentInfo

type Provides read-only information about the traded instrument, such as order size and value limits.

Fields


Order

type Represents a trading order with properties for tracking its status, execution type, and parameters.

Fields

Methods


PlaceOrderBuilder

type Builder class for creating new trading orders with specified parameters.

Methods


Position

type Represents a current trading position with size and entry price information.

Fields


Stop

type Represents trigger settings for a stop-order.

Fields


Trading

type Main class for executing trading operations including order creation, modification, and cancellation. Provides access to account cash and position information.

Fields

Methods


Enums

commission_type

enum Enum representing the type of commission calculation.

Static fields


intrabar_order_filter

enum Enum defining when orders should be executed within a bar during backtesting.

Static fields


market_order_price

enum Enum defining the price at which market orders are executed in backtesting.

Static fields


order_execution_type

enum Enum representing the execution type of a trading order.

Static fields


order_side

enum Enum representing the side of a trading order.

Static fields


order_status

enum Enum representing the current status of a trading order.

Static fields


trigger_direction

enum Enum representing the direction of a stop order trigger.

Static fields