avanza.models.certificate_info

 1from pydantic import BaseModel
 2
 3from .historical_closing_prices import HistoricalClosingPrices
 4from .listing import Listing
 5
 6
 7class Quote(BaseModel):
 8    last: float
 9    change: float
10    changePercent: float
11    timeOfLast: int
12    """ Unix timestamp (milliseconds) """
13    totalValueTraded: float
14    totalVolumeTraded: float
15    updated: int
16    """ Unix timestamp (milliseconds) """
17
18
19class KeyIndicators(BaseModel):
20    leverage: float
21    productLink: str
22    """ URL """
23    numberOfOwners: int
24    isAza: bool
25
26
27class CertificateInfo(BaseModel):
28    orderbookId: str
29    name: str
30    isin: str
31    tradable: str
32    """ Example: BUYABLE_AND_SELLABLE """
33    listing: Listing
34    historicalClosingPrices: HistoricalClosingPrices
35    keyIndicators: KeyIndicators
36    quote: Quote
37    type: str
38    """ CERTIFICATE """
class Quote(pydantic.main.BaseModel):
 8class Quote(BaseModel):
 9    last: float
10    change: float
11    changePercent: float
12    timeOfLast: int
13    """ Unix timestamp (milliseconds) """
14    totalValueTraded: float
15    totalVolumeTraded: float
16    updated: int
17    """ Unix timestamp (milliseconds) """
last: float
change: float
changePercent: float
timeOfLast: int

Unix timestamp (milliseconds)

totalValueTraded: float
totalVolumeTraded: float
updated: int

Unix timestamp (milliseconds)

class KeyIndicators(pydantic.main.BaseModel):
20class KeyIndicators(BaseModel):
21    leverage: float
22    productLink: str
23    """ URL """
24    numberOfOwners: int
25    isAza: bool
leverage: float
numberOfOwners: int
isAza: bool
class CertificateInfo(pydantic.main.BaseModel):
28class CertificateInfo(BaseModel):
29    orderbookId: str
30    name: str
31    isin: str
32    tradable: str
33    """ Example: BUYABLE_AND_SELLABLE """
34    listing: Listing
35    historicalClosingPrices: HistoricalClosingPrices
36    keyIndicators: KeyIndicators
37    quote: Quote
38    type: str
39    """ CERTIFICATE """
orderbookId: str
name: str
isin: str
tradable: str

Example: BUYABLE_AND_SELLABLE

keyIndicators: KeyIndicators
quote: Quote
type: str

CERTIFICATE