Ticker¶
-
class
avanza.
Ticker
(orderbook_id, **kwargs)¶ Bases:
avanza.base.Base
Request information about stock/certificate/fund/etc
Parameters: - orderbook_id (int) – id of ticker
- instrument (str) – Type of instrument, Defaults to ‘stock’
- auth (bool) – Set true for additional information, Defaults to False
Note
Additional information if authenticated
-
buy_price
¶ Grabs buy price of ticker
Returns: float
-
change
¶ Grabs change price of ticker
Returns: float
-
change_percent
¶ Grabs change price of ticker in percent
Returns: float
-
country
¶ Grabs the country of ticker
Returns: str
-
currency
¶ Grabs currency of ticker
Returns: str
-
flag_code
¶ Grabs flag code of ticker
Returns: str
-
highest_price
¶ Grabs highest price of ticker
Returns: float
-
id
¶ Grabs the id of ticker
Returns: int
-
info
¶ Grabs full json of ticker call
Returns: dict
-
isin
¶ Grabs ISIN of ticker
Returns: str
-
last_price
¶ Grabs last price of ticker
Returns: float
-
last_price_updated
¶ Grabs last time price was updated
Returns: str – ISO 8601
-
lowest_price
¶ Grabs lowest price of ticker
Returns: float
-
marketplace
¶ Grabs marketplace of ticker
Returns: str
-
name
¶ Grabs full name of ticker
Returns: str
-
quote_updated
¶ Grabs last time quote was updated
Returns: str – ISO 8601
-
sell_price
¶ Grabs buy sell of ticker
Returns: float
-
symbol
¶ Grabs symbol of ticker
Returns: str