A market-summary agent may need just three things: the latest EUR/USD price, the latest GBP/USD price and a short history for context. At SiftingIO's current x402 prices, two latest-price requests and one page of historical data cost $0.014 in API fees.

That is a useful way to think about pay-per-call market data: start with the information the task needs, then calculate the requests required to obtain it.

I'm the founder of SiftingIO. This guide uses our public x402 market data gateway to walk through pricing, free samples, request construction and the checks that belong around a payment-capable client.

What does a market data call cost?

SiftingIO's x402 gateway provides REST access to Forex, crypto, commodities and US stock data, alongside company fundamentals, technical signals and market calendars. It does not require a SiftingIO account, API key or subscription. Paid requests require a compatible payment client and a funded wallet on the supported network described in the setup guide.

The public catalog currently has four price points:

Request type Examples API fee per successful call
Latest prices and reference data Last trade, bid/ask quote, currency conversion, symbol lookup, market status $0.002
Signals and selected fundamentals Previous close, technical signals, filings, ratios, economic calendar $0.005
Historical data One response page of price bars or signal history $0.01
Larger datasets Multi-symbol snapshot, financial statements, fundamentals screener $0.02

Prices were checked on 28 November 2026. Payments are settled in USDC. The live endpoint catalog lists each route and its price; the OpenAPI document adds parameters, response schemas and payment metadata. Check those sources when building, and validate the payment terms returned by the actual request before signing.

Start with a free sample

Before paying for a live observation, inspect the response format:

curl -sS https://x402.sifting.io/samples/getLastTrade 

The free latest-price sample includes a note, the paid endpoint, its price and a nested sample object. Selected fields from that object look like this:

{ "s": "EURUSD", "p": "1.09376", "t": 1795796736920 } 

These are recorded sample values, not a current EUR/USD price. The sample is useful for checking parsing and field types. For example, p is a string, which matters if your application performs decimal arithmetic. The free sample endpoint wraps the example in metadata; do not confuse that wrapper with the paid endpoint's response schema.

Inspect the price before authorising payment

An unsigned request to the paid route lets the client discover its payment requirements:

curl -i https://x402.sifting.io/v1/last/trade/forex/EURUSD 

HTTP 402 Payment Required is the expected result here. The PAYMENT-REQUIRED header carries the payment terms, including the amount, asset, network and recipient.

A compatible x402 client checks those terms, signs a payment authorisation and retries with PAYMENT-SIGNATURE. The response's PAYMENT-RESPONSE header carries settlement information. The x402 HTTP documentation explains these headers.

The plain curl examples in this article do not sign payments. They inspect free samples or make unsigned requests. To retrieve paid data, use the payment-client example in the SiftingIO x402 guide. Keep signing credentials outside prompts, source control and routine logs.

Build a small market brief

Suppose the task is to describe two currency pairs and add a short hourly chart for one of them. The request budget is straightforward:

Data needed Request API fee
Latest EUR/USD price GET /v1/last/trade/forex/EURUSD $0.002
Latest GBP/USD price GET /v1/last/trade/forex/GBPUSD $0.002
One page of EUR/USD history GET /v1/hist/forex/EURUSD/bars $0.01
Total for three successful calls Assuming history fits in one page $0.014

Here is a historical request with an explicit date range and interval:

curl -i --compressed --get \ 'https://x402.sifting.io/v1/hist/forex/EURUSD/bars' \ --data-urlencode 'start=2026-11-23T00:00:00Z' \ --data-urlencode 'end=2026-11-27T23:59:59Z' \ --data-urlencode 'interval=1h' \ --data-urlencode 'limit=500' 

This is also an unsigned request. The URL and parameters are what you pass to your payment-capable client when you are ready to retrieve the data. --compressed enables compressed responses, which the history routes require for larger payloads.

The price is per response page, not per arbitrary date range. Follow meta.next_cursor when another page is needed and include those calls in the task budget. Forex and commodity history allow up to 2,000 rows per page, crypto history up to 5,000, and US stock history up to 1,000. The OpenAPI specification documents each route's limits.

For a watchlist task, the $0.02 snapshot route can return several symbols of one asset class in one response. For a company-research task, filings and financial-statement routes provide different levels of detail. Choose the response that matches the question rather than collecting every available dataset.

Make the result useful, not just successful

A successful HTTP response is only the start of the application-level check. A brief needs the symbol, value type, currency and observation time to remain attached to the number. A last price and a bid/ask quote answer different questions.

Use the data timestamp to assess freshness. A response fetched now may contain the latest observation from an earlier trading session. For a chart, preserve the interval and time-zone conventions. For US stock history, account for the documented as-traded, unadjusted treatment before calculating returns across corporate actions.

Keep the original observations available to the component writing the report. It should explain the data you retrieved, with its timestamp, rather than invent a newer price or silently fill a missing bar.

Give payments and retries a clear boundary

SiftingIO settles payment after a successful data response. Its documented policy excludes charges for invalid parameters, unknown symbols and server errors. A client-side timeout is a different situation: losing the connection alone does not prove that settlement failed. Preserve the request context and check the available payment result before authorising another attempt.

Set both a per-request spending limit and a total task budget. Include pagination, retries and parallel requests in the latter. The $0.014 example above covers the three API calls only, not model inference, wallet funding or other infrastructure costs.

For a first integration, start with the free sample, check the route in the catalog, and make one budgeted request through your payment client. Inspect the data and settlement result together before expanding the workflow.