diff options
author | アルム カールヨハン <karl@dglab.com> | 2017-03-04 07:18:50 -0800 |
---|---|---|
committer | bitcoindev <bitcoindev@gnusha.org> | 2017-03-04 15:28:53 +0000 |
commit | 98a8d6a819480588a5fcc1afbd61661a98884abb (patch) | |
tree | e40c52196f94406eba56e4975bd0a03c52dafc02 | |
parent | a44e32e7c6edcf8f56ccd0f31c85a12c0fccd402 (diff) | |
download | pi-bitcoindev-98a8d6a819480588a5fcc1afbd61661a98884abb.tar.gz pi-bitcoindev-98a8d6a819480588a5fcc1afbd61661a98884abb.zip |
Re: [bitcoin-dev] Currency/exchange rate information API
-rw-r--r-- | 2d/87d0bdad66b67c33ddd81352c4b9f77a73d1df | 132 |
1 files changed, 132 insertions, 0 deletions
diff --git a/2d/87d0bdad66b67c33ddd81352c4b9f77a73d1df b/2d/87d0bdad66b67c33ddd81352c4b9f77a73d1df new file mode 100644 index 000000000..d1e594439 --- /dev/null +++ b/2d/87d0bdad66b67c33ddd81352c4b9f77a73d1df @@ -0,0 +1,132 @@ +Return-Path: <karljohan-alm@garage.co.jp> +Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org + [172.17.192.35]) + by mail.linuxfoundation.org (Postfix) with ESMTPS id CCFB1480 + for <bitcoin-dev@lists.linuxfoundation.org>; + Sat, 4 Mar 2017 15:28:53 +0000 (UTC) +X-Greylist: delayed 00:09:33 by SQLgrey-1.7.6 +Received: from mo.garage.hdemail.jp (mo.garage.hdemail.jp [46.51.242.127]) + by smtp1.linuxfoundation.org (Postfix) with ESMTPS id A9A70136 + for <bitcoin-dev@lists.linuxfoundation.org>; + Sat, 4 Mar 2017 15:28:52 +0000 (UTC) +Received: from ip-10-128-0-137.ap-northeast-1.compute.internal + (localhost.localdomain [127.0.0.1]) + by mo.garage.hdemail.jp (hde-mf-postfix) with SMTP id 99F9C14C0BD + for <bitcoin-dev@lists.linuxfoundation.org>; + Sun, 5 Mar 2017 00:19:17 +0900 (JST) + (envelope-from karljohan-alm@garage.co.jp) +X-Received: from unknown (HELO mo.garage.hdemail.jp) (127.0.0.1) + by 0 with SMTP; 5 Mar 2017 00:19:17 +0900 +X-Received: from mo.garage.hdemail.jp (localhost.localdomain [127.0.0.1]) + by mo.garage.hdemail.jp (hde-ma-postfix) with ESMTP id 7BFDD4C082 + for <bitcoin-dev@lists.linuxfoundation.org>; + Sun, 5 Mar 2017 00:19:17 +0900 (JST) + (envelope-from karljohan-alm@garage.co.jp) +Received: from gw28.oz.hdemail.jp + (ip-10-185-144-212.ap-northeast-1.compute.internal [10.185.144.212]) + by mo.garage.hdemail.jp (hde-mf-postfix) with ESMTP id 6A9B814C0BD + for <bitcoin-dev@lists.linuxfoundation.org>; + Sun, 5 Mar 2017 00:19:17 +0900 (JST) + (envelope-from karljohan-alm@garage.co.jp) +X-Durian-MailFrom: karljohan-alm@garage.co.jp +X-Durian-RcptTo: bitcoin-dev@lists.linuxfoundation.org +Received: from gw28.oz.hdemail.jp (gw28.oz.hdemail.jp [127.0.0.1]) + by gw28.oz.hdemail.jp (gw28.oz.hdemail.jp [127.0.0.1]); + Sun, 5 Mar 2017 00:19:13 +0900 +X-HDEMS-From: karljohan-alm@garage.co.jp +X-Received: from mail-qk0-f200.google.com (lb1.oz.lo.hdemail.jp + [54.248.222.53]) + (using TLSv1 with cipher AES128-SHA (128/128 bits)) + (No client certificate requested) + by gw28.oz.hdemail.jp (Postfix) with ESMTP id CA660148C11A + for <bitcoin-dev@lists.linuxfoundation.org>; + Sun, 5 Mar 2017 00:19:12 +0900 (JST) +X-Received: by mail-qk0-f200.google.com with SMTP id n127so179378073qkf.3 + for <bitcoin-dev@lists.linuxfoundation.org>; + Sat, 04 Mar 2017 07:19:12 -0800 (PST) +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=1e100.net; s=20161025; + h=x-gm-message-state:mime-version:in-reply-to:references:from:date + :message-id:subject:to; + bh=9hO3eUnhydjrpuK3Zh+g5IxU23Wxkihb+UnDb3rDAxU=; + b=kJiMBhqAvskPIGt8nN+5JJGfRv8NPzOwq/OJPUzK0GNGq0KNCu69cxcyRHOD3EFnYd + B0ob8LMAVVQgNZkFis/kYk4Sasoz+0EMOiu7Xpl4ihrWq16g2iTMSijBnTKzWIxBmzyd + 5lEGOd9PCnmSPX0lwaEZVHDAHSsRyKnUmZLaCqxHWU/zWXgpoiJg/Q+wLrS88bDwMJ2k + Sl4N9Qi8x+nkI8uHUhBeO9F9igsZc0cdR4ynCd++v7hMaexlIfdZ83Y4hs2iQpc49IwV + Sd0wSA6YUEBhUmx2YT0sstk+NLLxqligQRTk9z7Cr8bYKRaOmMdrLC3839lZE3euEM+w + 8w9Q== +X-Gm-Message-State: AMke39lB3WvBE+qRFFYrA3moHb8rOtK7s8FImK7sm5syF0okjScF36vi66qrQi98qvVI33sWQj9aIHsV1yGYSwG90/b1nkAUBSksKV7KfjuANHqghEXr1L92YnYx0fAelIMPTHnaYp2975c40BidTG1+fsvAV7UoIjMWhifxFX7z3nIXLA== +X-Received: by 10.55.12.199 with SMTP id 190mr7408563qkm.321.1488640750772; + Sat, 04 Mar 2017 07:19:10 -0800 (PST) +X-Received: by 10.55.12.199 with SMTP id 190mr7408541qkm.321.1488640750485; + Sat, 04 Mar 2017 07:19:10 -0800 (PST) +MIME-Version: 1.0 +X-Received: by 10.12.146.161 with HTTP; Sat, 4 Mar 2017 07:18:50 -0800 (PST) +In-Reply-To: <201703040827.33798.luke@dashjr.org> +References: <201703040827.33798.luke@dashjr.org> +From: =?UTF-8?B?44Ki44Or44Og44CA44Kr44O844Or44Oo44OP44Oz?= <karl@dglab.com> +Date: Sat, 4 Mar 2017 07:18:50 -0800 +Message-ID: <CALJw2w49N273-sJ2cGjX=DncEYDh703S6F_7zupqmDJRsz+QZQ@mail.gmail.com> +To: Luke Dashjr <luke@dashjr.org>, + Bitcoin Protocol Discussion <bitcoin-dev@lists.linuxfoundation.org> +Content-Type: text/plain; charset=UTF-8 +X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,LOTS_OF_MONEY + autolearn=ham version=3.3.1 +X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on + smtp1.linux-foundation.org +X-Mailman-Approved-At: Sat, 04 Mar 2017 15:30:47 +0000 +Subject: Re: [bitcoin-dev] Currency/exchange rate information API +X-BeenThere: bitcoin-dev@lists.linuxfoundation.org +X-Mailman-Version: 2.1.12 +Precedence: list +List-Id: Bitcoin Protocol Discussion <bitcoin-dev.lists.linuxfoundation.org> +List-Unsubscribe: <https://lists.linuxfoundation.org/mailman/options/bitcoin-dev>, + <mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=unsubscribe> +List-Archive: <http://lists.linuxfoundation.org/pipermail/bitcoin-dev/> +List-Post: <mailto:bitcoin-dev@lists.linuxfoundation.org> +List-Help: <mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=help> +List-Subscribe: <https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev>, + <mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=subscribe> +X-List-Received-Date: Sat, 04 Mar 2017 15:28:54 -0000 + +I am surprised nothing like this exists already, so am all for the idea. + +Maybe I am misunderstanding, but I'm not sure you want to have +thousand separators and other locale stuff in there. All currencies +including USD are often shown in Swedish using space or dot as +thousand separator and comma as decimal separator, e.g. "1.234,56 USD" +or "1 234,56 USD". I.e. this is something that the locale of the +user's environment defines, not something the server should have +opinions about. It is also not ideal to propose a given format based +on the user's locale, as some users have preferences for this (I +personally use US locale for numbers, and a US person who is visiting +Sweden wouldn't want this to suddenly change). + +-Kalle. + +On Sat, Mar 4, 2017 at 12:27 AM, Luke Dashjr via bitcoin-dev +<bitcoin-dev@lists.linuxfoundation.org> wrote: +> Investigating what it would take to add fiat currency information to Bitcoin +> Knots, I noticed Electrum currently has many implementations, one for each +> exchange rate provider, due to lack of a common format for such data. +> +> Therefore, I put together an initial draft of a BIP that could standardise +> this so wallets (or other software) and exchange rate providers can simply +> interoperate without a lot of overhead reimplementing the same thing many +> ways. +> +> One thing I am unsure about, is that currently this draft requires using XBT +> (as BTC) for Bitcoin amounts. It would seem nicer to use satoshis, but those +> don't really have a pseudo-ISO currency code to fit in nicely... +> +> Current draft here: +> https://github.com/luke-jr/bips/blob/bip-xchgrate/bip-xchgrate.mediawiki +> +> Thoughts? Anything critical missing? Ways to make the interface better? +> +> Luke +> _______________________________________________ +> bitcoin-dev mailing list +> bitcoin-dev@lists.linuxfoundation.org +> https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev + |