Learn how to use the getPrice JSON-RPC method.
getPricegetPrice returns an array of JSON objects containing real-time exchange rates, market cap, 24-hour changes, and volume for each specified token address in selected currencies (either usd, cny, or both at the moment).Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Version of the JSON-RPC protocol, should be 2.0.
"2.0"
The request identifier.
1
API method being called.
particle_getPrice The chain ID.
1
Parameters for the API method call.