Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
wiseplat
GitHub Repository: wiseplat/python-code
Path: blob/master/ invest-robot-contest_NeuroInvest-main/NeuroInvest/config.py
5931 views
1
from tinkoff.investments import CandleResolution
2
from enum import Enum
3
4
# interval between trading points in seconds
5
scanInterval = 5 * 60
6
tinkoffScanInterval = CandleResolution.MIN_5
7
8
# scan period from current time in seconds
9
scanPeriod = 3 * 24 * 60 * 60
10
11
# prediction period for training
12
predictPeriod = 1 * 24 * 60 * 60
13
14
# historical scan period for training
15
# 100 days for beginning
16
trainingPeriod = 100 * 24 * 60 * 60
17
18
# intervals for calculating predictions
19
predictionIntervals = [1 * 60 * 60, 2 * 60 * 60, 4 * 60 * 60, 8 * 60 * 60]
20
21
# TOKENS
22
23
# Tinkoff API
24
tinkoffAPIToken = " << TOKEN >> "
25
26
# TTinkoff trading pair data
27
class TinkoffTrade(Enum):
28
APPLE = {"name": "APPLE INC/USD", "figi": "BBG000B9XRY4"},
29
GAZPROM_OIL = {"name": "GAZPROM NEFT PJSC/RUR", "figi": "BBG004S684M6"},
30