Skip to content

Commit

Permalink
Update constants.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Seanman519 authored Apr 1, 2024
1 parent 8c9d70c commit bf792e5
Showing 1 changed file with 5 additions and 66 deletions.
71 changes: 5 additions & 66 deletions rlbot/utils/configs/constants.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
"""Constants.
Static variables and parameters that are used throughout the app.
#TODO convert to yaml?
"""
from __future__ import annotations

import os
from pathlib import Path

from rlbot.utils.time import mt5_hour_diff
from releat.utils.time import mt5_hour_diff

root_dir = str(Path(os.path.dirname(__file__)).parents[2])

Expand All @@ -24,36 +17,20 @@
"AUDJPY": 2002,
"USDJPY": 2003,
"XAUUSD": 2004,
},
"ampglobal": {
"general": 2100,
"@CLE": 2101,
"@DB": 2102,
"@EP": 2103,
"@ENQ": 2104,
},
},
}

broker_timezones = {
"metaquotes": mt5_hour_diff(broker="metaquotes"),
"ampglobal": 0,
}

mt5_creds = {
"metaquotes": {
"demo": {
"path": f"{root_dir}/data/platforms/mt5/0/MetaTrader 5/terminal64.exe",
"server": "MetaQuotes-Demo",
"login": 75342897,
"password": "!p7nCzDf",
},
},
"ampglobal": {
"demo": {
"path": f"{root_dir}/data/platforms/mt5/1/MetaTrader 5/terminal64.exe",
"server": "AMPGlobalUSA-Demo",
"login": 1432733,
"password": "ndupedd4",
"login": 5023954431,
"password": "7kRhKh+g",
},
},
}
Expand Down Expand Up @@ -98,43 +75,5 @@
"maintenance": 1000,
"margin": 1000,
},
},
"ampglobal": {
"@CLE": {
"pip": 0.1,
"pip_val": 100,
"contract_size": 1,
"currency": "USD",
"commission": 4.26,
"maintenance": 7000,
"margin": 1750,
},
"@DB": {
"pip": 0.1,
"pip_val": 100,
"contract_size": 1,
"currency": "USD",
"commission": 1.68,
"maintenance": 4450,
"margin": 1112.5,
},
"@EP": {
"pip": 0.1,
"pip_val": 12.5,
"contract_size": 1,
"currency": "USD",
"commission": 3.8,
"maintenance": 15800,
"margin": 1000,
},
"@ENQ": {
"pip": 0.1,
"pip_val": 50,
"contract_size": 1,
"currency": "USD",
"commission": 3.8,
"maintenance": 10600,
"margin": 400,
},
},
},
}

0 comments on commit bf792e5

Please sign in to comment.