Real-time & Historical

Financial Market Data API

For Stock, Forex, Crypto & More.

Infoway API delivers low-latency market data for algo-trading and financial systems.

  • Extensive Market Coverage
  • High-Performance WebSocket Streaming
  • Seamless API Integration
Infoway Real-time Financial Data API
POSThttps://data.infoway.io/stock/v2/batch_kline
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

public class KlineExample {
    public static void main(String[] args) throws Exception {
        String body = "{\"klineType\":1,\"klineNum\":10,"
                + "\"codes\":\"002594.SZ,00285.HK,TSLA.US\"}";

        HttpRequest request = HttpRequest.newBuilder()
                .uri(URI.create("https://data.infoway.io/stock/v2/batch_kline"))
                .header("apiKey", "yourApikey")
                .header("Content-Type", "application/json")
                .header("User-Agent", "Mozilla/5.0")
                .POST(HttpRequest.BodyPublishers.ofString(body))
                .build();

        HttpResponse<String> response = HttpClient.newHttpClient()
                .send(request, HttpResponse.BodyHandlers.ofString());

        System.out.println("HTTP code: " + response.statusCode());
        System.out.println("message: " + response.body());
    }
}

All-in-One Financial Data APIs & Solutions

Forget the hassle of integrating complex, separate data feeds. Infoway unifies global market data into a single powerful API, so you can focus on seizing opportunities, not on complex integrations.

Start Your Free Trial

Instant access. No credit card required.

Real-Time Streams. Millisecond Speed.

Stream real-time quotes, trades and order book updates over a single persistent WebSocket connection, delivered with millisecond latency.

4+

Asset classes on one WebSocket: stocks, forex, crypto and futures.

<50ms

Data latency, so every price update reaches your system in real time.

5,000

Max symbols on standard plans; stock plans cover all listed stocks.

WebSocket is also available on free trial accounts.

Get Free API Key
No credit card required.

Your Trading Edge Powered by Data

Everything you need for a superior trading system. From backtesting to arbitrage, Infoway is your stable and reliable technology foundation.

30,000+ Symbols Across Global Markets

Access over 30,000 trading assets to meet your diverse needs.

Download Symbol List

Consistent API Experience

A consistent data schema across markets, with one unified API.

Easy Integration

Get started in minutes with clear docs and simple API requests.

Rich Data. Deeper Insights.

Access richer data to uncover meaningful insights and make more informed decisions.

From Historical Trends to Real-Time Insights

Access historical and real-time market data to analyze past performance, monitor current conditions, and build data-driven strategies.

Real-time
Start Your Free Trial

Instant access. No credit card required.

Thousands of Symbols & Growing

Explore a growing universe of market data and find the assets you need through Infoway's unified API.

Solutions for Every Financial Use Case

Our API serves as the data backbone for diverse fintech solutions, tailored to your specific application.

QUANTITATIVE TRADING

Power Your Trading Strategies

Access real-time and historical market data to develop, test, and refine quantitative strategies with greater confidence.

TRADING PLATFORMS

Build Better Trading Experiences

Integrate real-time quotes, charts, and market depth into your trading platform to deliver richer market insights and a more engaging trading experience.

AI AGENTS

Bring Your AI Closer to the Market

Equip AI agents with real-time and historical market data to deliver more informed analysis, timely insights, and smarter workflows.

FINANCIAL MEDIA

Enrich Financial Content

Enhance financial websites and news platforms with historical charts and market updates to create more informative content and keep audiences engaged.

Rapid Integration

Go Live in Minutes

From Python for quants to Java and C# for high-performance systems, our code samples and SDKs make integration seamless, allowing your dev team to connect our API across your entire stack.

Live CandlesticksHistorical CandlesticksMarket DepthTick-by-Tick TradesLast Trade
package org.example.ws;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.nio.charset.StandardCharsets;

public class HttpExample {
    public static void main(String[] args) {
        try {
            String apiUrl = "https://data.infoway.io/stock/v2/batch_kline";
            String payload = "{\"klineType\":1,\"klineNum\":10,\"codes\":\"002594.SZ,00285.HK,TSLA.US\"}";
            URL url = new URL(apiUrl);

            HttpURLConnection connection = (HttpURLConnection) url.openConnection();
            connection.setRequestMethod("POST");
            connection.setDoOutput(true);

            connection.setRequestProperty("User-Agent", "Mozilla/5.0");
            connection.setRequestProperty("Accept", "application/json");
            connection.setRequestProperty("Content-Type", "application/json");
            connection.setRequestProperty("apiKey","yourApikey");

            try (OutputStream os = connection.getOutputStream()) {
                byte[] input = payload.getBytes(StandardCharsets.UTF_8);
                os.write(input, 0, input.length);
            }

            int responseCode = connection.getResponseCode();
            System.out.println("HTTP code: " + responseCode);

            BufferedReader reader;
            if (responseCode == HttpURLConnection.HTTP_OK) {
                reader = new BufferedReader(new InputStreamReader(connection.getInputStream()));
            } else {
                reader = new BufferedReader(new InputStreamReader(connection.getErrorStream()));
            }

            String line;
            StringBuilder response = new StringBuilder();

            while ((line = reader.readLine()) != null) {
                response.append(line);
            }

            reader.close();

            System.out.println("message: " + response);

        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}

FAQ

If you need any help, please feel free to contact our support team.

Go live in under 30 minutes.

Get Started. For Free!

Your free plan includes everything you need to get started:

Free API calls & WS for real-time and historical data
Free Access to Select Symbols
Direct support from our developer team
Get Your Free API Key
No credit card required.