This API demonstrates a credit-based system with automated payment handling, perfect for AI agents and automated systems. It provides real-time financial market data, allowing you to query stock ticker information programmatically. Each API call costs 1 credit. New accounts start with 1 free credit. Learn more about the L402 protocol here.
The service exposes three main endpoints:
/signup
- Create account credentials and receive API key/info
- Check account status and remaining credits/ticker/{ticker_symbol}
- Get financial data for specific tickers
When you run out of credits, the API returns a 402 Payment Required
status code, allowing applications to programmatically handle payments and continue operation.
You can buy credits using: ⚡ Lightning Network, 💳 Credit Card, or ₿ Cryptocurrency