trading_strategy_universe#

API documentation for tradeexecutor.strategy.trading_strategy_universe Python module in Trading Strategy.

Module description#

Trading Strategy oracle data integration.

Define trading universe based on data from tradingstrategy and market data feeds.

See Trading universe for more information.

Classes#

Dataset

Contain raw loaded datasets.

DefaultTradingStrategyUniverseModel

Shortcut for simple strategies.

TradingStrategyUniverse

A trading strategy universe using our own data feeds.

TradingStrategyUniverseModel

A universe constructor that builds the trading universe data using Trading Strategy client.

Functions#

create_pair_universe_from_code(chain_id, pairs)

Create the trading universe from handcrafted data.

load_all_data(client, time_frame, ...[, ...])

Load all pair, candle and liquidity data for a given time bucket.

load_pair_data_for_single_exchange(client, ...)

Load pair data for a single decentralised exchange.

load_partial_data(client, execution_context, ...)

Load pair data for given trading pairs.

load_trading_and_lending_data(client, ...[, ...])

Load trading and lending market for a single chain for all long/short pairs.

translate_credit_reserve(lending_reserve, ...)

Translate lending protocol reserve from client download to the trade executor.

translate_token(token[, require_decimals, ...])

Translate Trading Strategy token data definition to trade executor.

translate_trading_pair(pair[, cache])

Translate trading pair from client download to the trade executor.