Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BIP 171: Currency/exchange rate information API #499

Merged
merged 18 commits into from
Mar 14, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
bip-xchgrate: Drop HTML longdesc
  • Loading branch information
luke-jr committed Mar 5, 2017
commit ee90b8c525311a354257ef03cd8f5bfa7ed4e751
4 changes: 2 additions & 2 deletions bip-xchgrate.mediawiki
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Each currency-pair will receive a separate result, a JSON Object, with the follo
* ''quote'' - The currency code for the quote currency.
* ''base'' - The currency code for the base currency.
* ''desc'' - Optional description. For example, it could be "Based on Florida BTM prices." or any other short String that provides information useful to the user. SHOULD be shorter than 45 characters.
* ''longdesc'' - Optional description, but may be longer and formatted using HTML.
* ''longdesc'' - Optional description, but may be longer and include newlines.
* ''symbol'' - An Array of prefix and suffix for the quote currency. Each may be either a fixed String, an Array of two Strings (negative and positive), or null. Any positive or negative symbols must be included in this prefix/suffix; it MUST NOT be implied otherwise.
* ''digits'' - The type of digits to use for the quote currency's numbers. "arabic" should be used for common 0-9 digits.
* ''grouping'' - An Array alternating between Numbers representing a series of digits, and Strings used as delimiters. If terminated by a zero, the final grouping is to be repeated continually. For example, the common US locale thousands grouping would be <code>[3, ",", 0]</code>
Expand Down Expand Up @@ -127,7 +127,7 @@ Why are multiple results separated by a line-feed rather than using a JSON Array

What if long descriptions require line and paragraph breaks?

* Long descriptions support HTML, which has entities for paragraphs and line breaks that do not require literal line-feeds in the data.
* Clients should word-wrap long lines, and JSON escapes newlines as "\n" which can be used doubly ("\n\n") for paragraph breaks.

==Backwards compatibility==

Expand Down