AminHP / gym-anytrading

The most simple, flexible, and comprehensive OpenAI Gym trading environment (Approved by OpenAI Gym)
MIT License
2.09k stars 459 forks source link

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

Closed modibboalih closed 1 year ago

modibboalih commented 1 year ago
    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"