Skip to main content

JSON RPC

Exchange Rates - JSON RPC

Introduction

Our exchange rates 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/assets or /v1/exchangerates/BTC) in the method property of the JSON-RPC, you can access all of our exchange rates 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 Exchange Rates 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 exchange rates using JSON-RPC, you need to use following URL:

EnviromentEncryptionValue
ProductionYeshttps://api-realtime.fx.finfeedapi.com/jsonrpc
ProductionYeshttps://api-historical.fx.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
}