quantpylib.datapoller.crypto
Crypto
Bases: BasePoller
close_market_data_stream(ticker, **kwargs)
async
Terminate streaming for market data of a specific cryptocurrency. @poller(tag="stream")
Parameters:
Name | Type | Description | Default |
---|---|---|---|
ticker |
str
|
Cryptocurrency ticker symbol. |
required |
**kwargs |
Data-source specific keyword arguments for endpoint specification. |
{}
|
get_ticker_fundamentals(ticker, **kwargs)
Retrieve fundamentals data for a specific cryptocurrency. @poller
Parameters:
Name | Type | Description | Default |
---|---|---|---|
ticker |
str
|
Cryptocurrency ticker symbol. |
required |
**kwargs |
Data-source specific keyword arguments for endpoint specification. |
{}
|
Returns:
Type | Description |
---|---|
Fundamentals data for the specified cryptocurrency from the selected data source. |
Examples:
get_ticker_metadata(ticker, **kwargs)
Retrieve metadata for a specific cryptocurrency. @poller
Parameters:
Name | Type | Description | Default |
---|---|---|---|
ticker |
str
|
Cryptocurrency ticker symbol. |
required |
**kwargs |
Data-source specific keyword arguments for endpoint specification. |
{}
|
Returns:
Type | Description |
---|---|
Metadata for the specified cryptocurrency from the selected data source. |
get_trade_bars(**kwargs)
Retrieve OHLCV trade bar data for cryptocurrencies. @ts_poller
Parameters:
Name | Type | Description | Default |
---|---|---|---|
**kwargs |
Data-source specific keyword arguments for endpoint specification. |
{}
|
Returns:
Type | Description |
---|---|
Trade bar data for the specified cryptocurrency from the selected data source. |
Examples:
stream_market_data(ticker, **kwargs)
async
Stream market data for a specific cryptocurrency. @poller(tag="stream")
The data being streamed can be accessed by the attribute stream_buffer
,
and the specific ticker stream accessed: poller.stream_buffer[ticker]
.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
ticker |
str
|
Cryptocurrency ticker symbol. |
required |
**kwargs |
Data-source specific keyword arguments for endpoint specification. |
{}
|
Returns:
Examples: