streams.stats
streams.stats.get_stats()
Get the global stats for the account.
from moralis import streams
api_key = "YOUR_API_KEY"
result = streams.stats.get_stats(
api_key=api_key,
)
print(result)
streams.stats.get_stats_by_stream_id()
Get the stats for the streamId specified
from moralis import streams
api_key = "YOUR_API_KEY"
params = {
"streamId": "",
}
result = streams.stats.get_stats_by_stream_id(
api_key=api_key,
params=params,
)
print(result)
Name | Type | Description | Required | Default | Example |
---|---|---|---|---|---|
streamId | str | The id of the stream to get the stats | Yes | ”” |