https://github.com/ronik-v/stock_strategy_testing_api
Oversimplistic asynchronous web api for receiving data from the Moscow Exchange.
https://github.com/ronik-v/stock_strategy_testing_api
api data-parsing fastapi investing investing-api investment-strategies moex moex-data web-api
Last synced: 2 months ago
JSON representation
Oversimplistic asynchronous web api for receiving data from the Moscow Exchange.
- Host: GitHub
- URL: https://github.com/ronik-v/stock_strategy_testing_api
- Owner: ronik-v
- License: apache-2.0
- Created: 2023-09-17T08:55:36.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-26T20:05:25.000Z (over 1 year ago)
- Last Synced: 2023-09-27T03:09:57.105Z (over 1 year ago)
- Topics: api, data-parsing, fastapi, investing, investing-api, investment-strategies, moex, moex-data, web-api
- Language: Python
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Stock strategy testing web api
Details
Oversimplistic asynchronous web api for receiving data from the Moscow Exchange (MOEX)
Through it you can get data on financial instruments, that is, prices (json): opening, closing, minimum prices, maximum prices.
You can also get indicators: MACD, SIGNAL, SMA5, SMA12, EMA5, EMA12, VOLATILITY.
Using the api
Request for get ticker data at 2022-05-01 to 2023-09-26:
from requests import get
data = get('http://127.0.0.1:9999/api_sst/data/GAZP/2022-05-01/2023-09-26').json()
print(data)
Request for strategy testing at 2022-05-01 to 2023-09-26:
from requests import get
sst_strategies = get('http://127.0.0.1:9999/api_sst/strategy/GAZP/2022-05-01/2023-09-26').json()
print(sst_strategies)
Libraries to install
requirements
You may use command for install all:
pip install -r requirements.txt
Docker
file is here