Python client for the TerminalFeed real-time data API: live markets, crypto, macro, and world data for humans and AI agents
Project description
terminalfeed
Python client for the TerminalFeed real-time data API: live markets, crypto, macro, and world data, built for humans on a second monitor and for AI agents that pay their own way.
pip install terminalfeed
Single module, one dependency (requests). You can also vendor it: copy terminalfeed.py straight into your codebase.
Free tier (no token, no signup)
from terminalfeed import TerminalFeed
tf = TerminalFeed()
print(tf.free_btc_price()) # live BTC price
print(tf.free_briefing()) # one-call world snapshot
print(tf.free_feed_reliability()) # ranked reliability of every feed
print(tf.regime_preview()) # free taste of the market-regime verdict
print(tf.pro_catalog()) # machine-readable premium catalog with prices
There are 30+ free endpoints in total (stocks, earthquakes, prediction markets, space launches, gas prices, and more). The full list lives at terminalfeed.io/for-devs/api and in llms.txt.
Premium tier (USDC on Base, no KYC)
1 credit = $0.02, and $1 USDC buys 50 credits. The entire payment loop is agent-completable: no signup form, no credit card, no human in the loop.
from terminalfeed import TerminalFeed
tf = TerminalFeed()
quote = tf.buy_credits(amount_usd=1.00)
# Send USDC on Base mainnet to quote["wallet"] with memo quote["memo"]
tf.confirm_payment(tx_hash="0x...", nonce=quote["memo"])
print(tf.balance())
print(tf.macro(history="30d")) # 2 credits
print(tf.crypto_deep(coins=["btc", "eth", "sol"])) # 2 credits
print(tf.briefing(include=["btc", "predictions"])) # 1 credit
print(tf.regime()) # 2 credits, signed receipt
print("remaining:", tf.credits_remaining)
Token sharing with TensorFeed
Bearer tokens (tf_live_<64-char-hex>) are cross-redeemable with TensorFeed (pip install tensorfeed). A token minted on either site authenticates on both, against a shared credit pool. One purchase, two data sources.
Error handling
from terminalfeed import TerminalFeed, PaymentRequiredError, TerminalFeedError
try:
tf.macro()
except PaymentRequiredError as e:
# e.reason is one of: missing_token, invalid_token,
# insufficient_credits, expired, billing_unavailable
print("need credits:", e.reason, e.signup_url)
except TerminalFeedError as e:
print("API error:", e)
Links
- Docs: https://terminalfeed.io/developers/agent-payments
- Developer hub: https://terminalfeed.io/for-devs
- OpenAPI spec: https://terminalfeed.io/openapi.json
- MCP server config: https://terminalfeed.io/for-devs/mcp
MIT licensed.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file terminalfeed-0.1.0.tar.gz.
File metadata
- Download URL: terminalfeed-0.1.0.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
670be744df675d23fff0d58e8eb3b52d0b4c67a6317bb6ea26ab0ef89c5a1a53
|
|
| MD5 |
35d2716d54d789f5cef1f775ef04113e
|
|
| BLAKE2b-256 |
e6e5e0d0df57a85d3226b18192dba3254f4bed5a8f2672f1920d11c584b91c98
|
File details
Details for the file terminalfeed-0.1.0-py3-none-any.whl.
File metadata
- Download URL: terminalfeed-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b5f945619ed06ecba273b4b98ffacf168fdbe8e9a742420d3995ebb09de05eb6
|
|
| MD5 |
ec8444568bcda498796856a8ab5d6fcc
|
|
| BLAKE2b-256 |
1a0d00e42e1c3aabf357909e71722f42b679575bb8d3b6606afe75e616ae9806
|