Skip to main content

JSON RPC

Stock Data - JSON RPC

Introduction

Our stock data API provides versatile access through JSON-RPC, and our REST endpoints are fully compatible with it, offering flexibility for developers.

  • By specifying resource paths (such as /v1/stocks or /v1/prices/AAPL) in the method property of the JSON-RPC, you can access all of our stock data resources.

  • Additionally, the params property allows for the inclusion of query parameters.

JSON-RPC

JSON-RPC is a lightweight remote procedure call protocol encoded in JSON. It allows for efficient and straightforward communication between a client and a server over various transport protocols.

JSON-RPC is widely used in web services and APIs due to its simplicity and ease of use.

JSON-RPC 2.0 Standard

Before diving into the details of using JSON-RPC with the Stock Data API, it's important to understand the JSON-RPC standard. You can find detailed information about the JSON-RPC specification on the official JSON-RPC website.

Endpoint

To access stock data using JSON-RPC, you need to use following URL:

EnviromentEncryptionValue
ProductionYeshttps://api-historical.stock.finfeedapi.com/jsonrpc

Authentication

If you want to learn how to authenticate to this API, you can find detailed instructions and guidance in authentication section of this documentation.

Request Format

All requests should follow this format:

{
"jsonrpc": "2.0",
"method": "v1/methodName",
"params": [...],
"id": null
}