From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id CCFB1480 for ; 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 ; 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 ; 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 ; 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 ; 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 ; Sun, 5 Mar 2017 00:19:12 +0900 (JST) X-Received: by mail-qk0-f200.google.com with SMTP id n127so179378073qkf.3 for ; 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?= Date: Sat, 4 Mar 2017 07:18:50 -0800 Message-ID: To: Luke Dashjr , Bitcoin Protocol Discussion 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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 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