Skip to content

Commit 51384ca

Browse files
committed
BIP 171: Specify nonce support for "rate" mode
1 parent 1b7590e commit 51384ca

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bip-0171.mediawiki

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,14 @@ Parameters:
108108
* ''cp'' - Currency pair(s) for which rate is requested.
109109
* ''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.
110110
* ''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.
111+
* ''nonce'' - If specified, the server SHOULD return it in each result.
111112
112113
Each currency-pair receives a separate result (a JSON Object) with all requested rate types:
113114
114115
* ''cp'' - The currency-pair token.
115116
* ''time'' - The time (as a POSIX timestamp) the rate information is applicable to (should be approximately the request time).
116117
* ''rates'' - A JSON Object with each rate type provided as a key, and a Number as the value specifying the rate.
118+
* ''nonce'' - Only if the request specified a nonce, the server SHOULD include it here as a JSON String.
117119
118120
Example:
119121

0 commit comments

Comments
 (0)