Business entities and utils

Business entities

class EodDataExchange(code, name, last_trade_time, country_code, currency, advances, declines, timezone, suffix='', is_intraday=False, intraday_start_date=None, has_intraday=False)[source]

EodData Exchange.

code

str – Exchange code

name

str – Datetime of the last trade

last_trade_time

datetime – Datetime of the last trade

country_code

str – Code of the country where this exchange is situated

currency

str – Exchange currency

advances

int – Advances count

declines

int – Declines count

suffix

str – Exchange suffix

timezone

str – Exchange timezone

is_intraday

bool – Availability of intraday data.

intraday_start_date

datetime or None – Intraday data availability start date.

has_intraday

bool – Indicates if EodData has intraday data for this exchange.

classmethod from_xml(xml_exchange)[source]

Get EodDataExchange object from xml element.

Parameters:xml_exchange – Exchange XML element.
Returns:EodDataExchange instance or None.
class EodDataQuoteCompact(symbol, quote_datetime, open, high, low, close, volume, open_interest, before, after)[source]

EodData quote.

symbol

str – Symbol.

quote_datetime

datetime – Quote datetime.

open

float – Open price.

high

float – High price.

low

float – Low price.

close

float – Close price.

volume

int – Traded volume.

open_interest

int – Open interest.

before

float

after

float

classmethod from_xml(xml_quote)[source]

Get instance from xml.

Returns:EodDataQuoteCompact instance or None.
symbol = None

Security symbol

class EodDataQuoteExtended(symbol, quote_datetime, open, high, low, close, volume, open_interest, previous, change, bid, ask, modified, previous_close=0, next_open=0, name='', description='')[source]

EodData extended quote.

symbol

str – Symbol.

quote_datetime

datetime – Quote datetime.

open

float – Open price.

high

float – High price.

low

float – Low price.

close

float – Close price.

volume

int – Traded volume.

open_interest

int – Open interest.

previous

float – Previous close price.

change

float – Change from previous close.

bid

float – Bid price.

ask

float – Ask price.

modified

datetime – Time of the last update for this security.

name

str – Full name of a traded asset.

description

str – Description.

df_columns

tuple of str – Data frame columns (static attribute).

classmethod from_xml(xml_quote)[source]

Get EodDataQuoteExtended object from xml element.

Returns:EodDataQuoteExtended instance or None.
class EodDataSymbol(code, name, long_name)[source]

EodData symbol.

code

str – Symbol code.

name

str – Asset name.

long_name

str – Long name.

classmethod from_xml(xml_symbol)[source]

Get EodDataSymbol object from xml element.

Returns:EodDataSymbol instance or None.
class EodDataSymbolCompact(code, name)[source]

EodData symbol (compact).

code

str – Symbol code.

name

str – Asset name.

classmethod from_xml(xml_symbol)[source]

Get EodDataSymbolCompact object from xml element.

Returns:EodDataSymbolCompact instance or None.

Utils

class ObjectProxy(wrapped)[source]

Proxy object.

class RecursionDepthManager(func, max_depth=3)[source]

Decorator to manage recursion depth.

utils.string_to_datetime(iso8601_datetime_string)

Converts ISO 8601 datetime string to Python datetime

Parameters:iso8601_datetime_string (str) – ISO 8601 datetime string
Returns:datetime.datetime object
Raises:ValueError