Twitter/X activity: twitter.activity¶
Fetches the tweet feed shown beside a market, newest first, with cursor pagination.
| HTTP | GET https://future.news/fds/api/v1/market/twitter/activity/list |
| Auth | none |
| Returns | ApiResponse |
Parameters¶
| Parameter | Type | Default | Notes |
|---|---|---|---|
event_slug |
str |
required | e.g. "btc-up-or-down-5m". Non-empty. |
limit |
int |
10 |
1 to 100 |
cursor |
str |
"" |
empty for the first page; pass the cursor from the previous page to continue |
Example (sync)¶
from futurenews import FutureNews
with FutureNews() as client:
page = client.twitter.activity("btc-up-or-down-5m", limit=10)
print(page.data)
# next page: client.twitter.activity("btc-up-or-down-5m", limit=10, cursor="<cursor from page>")
Example (async)¶
import asyncio
from futurenews import AsyncFutureNews
async def main():
async with AsyncFutureNews() as client:
print((await client.twitter.activity("btc-up-or-down-5m")).data)
asyncio.run(main())
Equivalent request¶
curl 'https://future.news/fds/api/v1/market/twitter/activity/list?limit=10&cursor=&event_slug=btc-up-or-down-5m&from_app=future-web&os=web'
About the response
Future News does not publish a schema. The library returns the payload as an ApiResponse: .data holds the "data" field (or the whole JSON when there is none) and .raw always holds the untouched JSON. Unknown fields are never dropped. Field-level models are added once sample responses are confirmed, so treat the shape as subject to change.
Info
The exact name of the next-page cursor in the response is not confirmed yet. Inspect page.raw to find it.
Related: Authentication · Errors & Cloudflare · All endpoints
Don't have a Future News account?
Sign up with our link. It's free for you and supports this library.
Build something with this data
Chipa dev team builds trading bots and tools: Bot development · ChipaX exchange · Chipa Editor · Discord