AminHP / gym-anytrading

The most simple, flexible, and comprehensive OpenAI Gym trading environment (Approved by OpenAI Gym)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does anybody understand this block of code from the MtEnv class in the env directory. Most especially the currency_profit.

modibboalih opened this issue · comments

    for symbol in trading_symbols:
        assert symbol in original_simulator.symbols_info, f"symbol '{symbol}' not found"
        currency_profit = original_simulator.symbols_info[symbol].currency_profit
        assert original_simulator._get_unit_symbol_info(currency_profit) is not None, \
               f"unit symbol for '{currency_profit}' not found"