Query Types
SpotPrice
dataclass
¶
Bases: AbiQuery
Returns the spot price of a cryptocurrency asset in the given currency.
Attributes:
Name | Type | Description |
---|---|---|
asset |
str
|
Asset ID (see data specifications for a full list of supported assets) |
currency |
str
|
Currency (default = |
Source code in telliot_feeds/queries/price/spot_price.py
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
|
value_type: ValueType
property
¶
Data type returned for a SpotPrice query.
ufixed256x18
: 256-bit unsigned integer with 18 decimals of precisionpacked
: false
__post_init__()
¶
Validate parameters.
Source code in telliot_feeds/queries/price/spot_price.py
78 79 80 81 82 83 84 85 86 87 |
|
StringQuery
dataclass
¶
Bases: JsonQuery
Static Oracle Query
A text query supports a question in the form of an arbitrary text.
Source code in telliot_feeds/queries/string_query.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
|
value_type: ValueType
property
¶
Returns a default text response type.