Skip to content

Cryptrality/utilities

Repository files navigation

Utilities and Examples for use in Trality crypto trading bots.

Bot Examples

  • Multicoin Bot Template
    • Multi-coin bot using PositionManager.

Funtionality Examples

  • Plotting Example
    • Simple example of how to use the plotting functionality

Indicator Examples

  • EMA Crossover example
  • RSI Double Bottom Example

Order Managment

check_state_of_limit_order.py

Two methods to check the state of limit orders.

PositionManager_example.py

Example of how to implement a bot using a class to manage positions.

Trality Extension

custom benchmark.py

Custom benchmark example using the Trality ema crossover rsi strategy as an example

enum.py

Enum class that works with Trality live bots. Implements __getstate__ and __setstate__ to work with pickling.

get_current_date.py

Sample code to get the current date. Works in backtesting and live bot.

Other

skip_missing_backtest_data.py

Skips missing data in backtests.

format_currency.py

Function to format currencies, with symbols and decimal points.

Releases

No releases published

Packages

No packages published

Languages