mirror of
https://github.com/bitcoin/bips.git
synced 2025-05-19 12:08:05 +00:00
BIP 171: Specify nonce support for "rate" mode
This commit is contained in:
parent
1b7590e009
commit
51384ca981
@ -108,12 +108,14 @@ Parameters:
|
|||||||
* ''cp'' - Currency pair(s) for which rate is requested.
|
* ''cp'' - Currency pair(s) for which rate is requested.
|
||||||
* ''type'' - Type of exchange rate data being requested. May be "high", "low", "average", "typical", or any other arbitrary name. If omitted, the server may provide any rates it deems appropriate.
|
* ''type'' - Type of exchange rate data being requested. May be "high", "low", "average", "typical", or any other arbitrary name. If omitted, the server may provide any rates it deems appropriate.
|
||||||
* ''minrate'', ''maxrate'' - If specified, indicates this request is a longpoll. The server should not send a response until the rate(s) fall below or above (respectively) the provided value.
|
* ''minrate'', ''maxrate'' - If specified, indicates this request is a longpoll. The server should not send a response until the rate(s) fall below or above (respectively) the provided value.
|
||||||
|
* ''nonce'' - If specified, the server SHOULD return it in each result.
|
||||||
|
|
||||||
Each currency-pair receives a separate result (a JSON Object) with all requested rate types:
|
Each currency-pair receives a separate result (a JSON Object) with all requested rate types:
|
||||||
|
|
||||||
* ''cp'' - The currency-pair token.
|
* ''cp'' - The currency-pair token.
|
||||||
* ''time'' - The time (as a POSIX timestamp) the rate information is applicable to (should be approximately the request time).
|
* ''time'' - The time (as a POSIX timestamp) the rate information is applicable to (should be approximately the request time).
|
||||||
* ''rates'' - A JSON Object with each rate type provided as a key, and a Number as the value specifying the rate.
|
* ''rates'' - A JSON Object with each rate type provided as a key, and a Number as the value specifying the rate.
|
||||||
|
* ''nonce'' - Only if the request specified a nonce, the server SHOULD include it here as a JSON String.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user