Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
wiseplat
GitHub Repository: wiseplat/python-code
Path: blob/master/ invest-robot-contest_tinkoff-trading-bot-develop/app/instruments_config/parser.py
5935 views
1
from app.instruments_config.models import InstrumentsConfig
2
3
4
def get_instruments(filename: str = "instruments_config.json") -> InstrumentsConfig:
5
"""
6
Get instruments config from file.
7
8
:param filename: name of file with instruments config
9
:return: InstrumentsConfig object
10
"""
11
return InstrumentsConfig.parse_file(filename)
12
13
14
instruments_config = get_instruments()
15
16