start

Starts the system to begin fetching data, running algorithms, and executing trades.

Syntax

Fields

Description

interval(str)

The interval to run the algorithm. Defaults to "5MIN"

aggregations(list[str])

A list of intervals. The Trader will aggregate data to the intervals specified in this list. For example, if this is set to ["5MIN", "30MIN"], and interval is "1MIN", the algorithm will have access to 5MIN, 30MIN aggregated data in addition to 1MIN data. Defaults to None

sync(bool)

If true, the system will sync with the broker and fetch current positions and pending orders. Defaults to true

server(bool)

If true, runs the system in server mode. Defaults to false

all_history(bool)

If true, gets all history for all the given assets. If false, only get data in the past three days. Defaults to true

def start(self, interval: str = Interval.MIN_5, aggregations: List = None, sync: bool = True, server: bool = False, all_history: bool = True) -> None:

Returns

This method does not return anything.

Raises