forked from LautaroParada/eod-data
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheod.py
23 lines (20 loc) · 896 Bytes
/
eod.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# -*- coding: utf-8 -*-
"""
Created on Wed May 5 09:06:37 2021
@author: lauta
"""
from eod.historical_prices import HistoricalPrices
from eod.fundamental_economic_data import FundamentalEconomicData
from eod.exchanges import ExchangesAndMarkets
from eod.alternative_data import AlternativeFinancialDataEOD
from eod.user import User
class EodHistoricalData(HistoricalPrices, FundamentalEconomicData,
ExchangesAndMarkets, AlternativeFinancialDataEOD,
User):
def __init__(self, api_key:str, timeout:int=300):
# Substructures of the API
HistoricalPrices.__init__(self, api_key, timeout)
FundamentalEconomicData.__init__(self, api_key, timeout)
ExchangesAndMarkets.__init__(self, api_key, timeout)
AlternativeFinancialDataEOD.__init__(self, api_key, timeout)
User.__init__(self, api_key, timeout)