BitShares Forum

Main => General Discussion => Topic started by: xeroc on September 13, 2014, 01:39:59 pm

Title: Next bitAsset to go: bitGLD and bitEUR
Post by: xeroc on September 13, 2014, 01:39:59 pm
Hey delegates,

some people around are eagerly awaiting the bitGLD
https://bitsharestalk.org/index.php?topic=8759.msg114934#msg114934
and the bitEUR
https://bitsharestalk.org/index.php?topic=6406.msg114296#msg114296

Bytemaster and I3 gave a "green light" for the community to freely publish any feeds.
BM explicitly told us at the hangout yesterday, that I3 has no interest in dictating when to launch new assets.

Id' suggest to start over with Gold and see what happens!

Thoughts?

Code: [Select]
{
    "delegate_name": "delegate.xeroc",
    "price": 3.0889758393127e-05,
    "last_update": "20140913T133400",
    "asset_symbol": "GLD",
    "median_price": null
  }
Title: Re: Next bitAsset to go: bitGLD and bitEUR
Post by: biophil on September 13, 2014, 02:35:14 pm
How exciting!
Title: Re: Next bitAsset to go: bitGLD and bitEUR
Post by: liondani on September 13, 2014, 02:41:49 pm
I am ALL-IN !!!

 +5% +5% +5%
Title: Re: Next bitAsset to go: bitGLD and bitEUR
Post by: spartako on September 13, 2014, 02:49:31 pm
Updated the command btsx_feed_auto.py:

Code: [Select]
./btsx_feed_auto.py USD BTC CNY GLD EUR

GLD is published for spartako,spartako1,spartako2
Code: [Select]
{
    "delegate_name": "spartako",
    "price": 3.0252856158216999e-05,
    "last_update": "20140913T144220",
    "asset_symbol": "GLD",
    "median_price": null
}
{
    "delegate_name": "spartako1",
    "price": 3.0252856158216999e-05,
    "last_update": "20140913T144220",
    "asset_symbol": "GLD",
    "median_price": null
}
{
    "delegate_name": "spartako2",
    "price": 3.0252856158216999e-05,
    "last_update": "20140913T144220",
    "asset_symbol": "GLD",
    "median_price": null
  },

For EUR the script it seems not working:
Code: [Select]
================= 20140913T164421 ==================
Warning: can't get price of EUR
Fetch: USD [0.036547991653625454, 0.03716744913928013] ,median: 0.0371674491393 ,change: 0.0 %
Fetch: GLD [2.9748641888914035e-05, 3.0252856158217663e-05] ,median: 3.02528561582e-05 ,change: 0.0 %
Fetch: BTC [7.73e-05, 7.77e-05] ,median: 7.77e-05 ,change: 0.0 %
Fetch: CNY [0.2242, 0.228] ,median: 0.228 ,change: 0.0 %
Title: Re: Next bitAsset to go: bitGLD and bitEUR
Post by: serejandmyself on September 13, 2014, 02:51:45 pm
Gold please
Title: Re: Next bitAsset to go: bitGLD and bitEUR
Post by: liondani on September 13, 2014, 03:00:01 pm
Updated the command btsx_feed_auto.py:

Code: [Select]
./btsx_feed_auto.py USD BTC CNY GLD EUR


 +5% +5% +5%
Title: Re: Next bitAsset to go: bitGLD and bitEUR
Post by: CLains on September 13, 2014, 03:22:10 pm
I like gold.
Title: Re: Next bitAsset to go: bitGLD and bitEUR
Post by: kisa on September 13, 2014, 03:50:18 pm
bitEUR is important also. then we can trace how bitEUR/bitUSD rate compares to EUR/USD. And some folks from Europe probably prefer bitEUR to bitUSD as a currency. Will be difficult to get market depth at start, as BTSX not trading in EUR terms on exchanges.

bitGLD sounds exciting and probably good marketing tool, but IMHO bridges USD -> bitUSD and EUR -> bitEUR are more important for wider adoption and will be easier to implement worldwide than GLD -> bitGLD...

(wouldn't be EUR/bitEUR market the easiest new product for bitstamp to offer?)
Title: Re: Next bitAsset to go: bitGLD and bitEUR
Post by: speedy on September 13, 2014, 04:02:56 pm
Before we get BitGold going, perhaps we should give BitBTC some love? That market is really thin.
Title: Re: Next bitAsset to go: bitGLD and bitEUR
Post by: xeroc on September 13, 2014, 04:13:53 pm
Before we get BitGold going, perhaps we should give BitBTC some love? That market is really thin.
Maybe there is a reason people don't use bitBTC? Why put money there if you can have a superior bitUSD?

I think bitBTC is a nice-to-have .. but not worth too much love
Title: Re: Next bitAsset to go: bitGLD and bitEUR
Post by: speedy on September 13, 2014, 06:46:06 pm
Before we get BitGold going, perhaps we should give BitBTC some love? That market is really thin.
Maybe there is a reason people don't use bitBTC? Why put money there if you can have a superior bitUSD?

I think bitBTC is a nice-to-have .. but not worth too much love

For some purposes BitBTC is more appropriate than BitUSD. For example if I just want to day-trade BTSX and dont want to worry about Bitcoin volatility. I keep looking at the BitUSD chart every day, and to make sense of it you have to work out what the current USD price of Bitcon is.
Title: Re: Next bitAsset to go: bitGLD and bitEUR
Post by: serejandmyself on September 13, 2014, 06:50:29 pm
Before we get BitGold going, perhaps we should give BitBTC some love? That market is really thin.
Maybe there is a reason people don't use bitBTC? Why put money there if you can have a superior bitUSD?

I think bitBTC is a nice-to-have .. but not worth too much love

why not? i have bitBtc  :)
Title: Re: Next bitAsset to go: bitGLD and bitEUR
Post by: cube on September 13, 2014, 07:08:31 pm
Hey delegates,

some people around are eagerly awaiting the bitGLD
https://bitsharestalk.org/index.php?topic=8759.msg114934#msg114934
and the bitEUR
https://bitsharestalk.org/index.php?topic=6406.msg114296#msg114296

Bytemaster and I3 gave a "green light" for the community to freely publish any feeds.


Gold prices declined to their 3-month low this month and many are interested to get some gold.  With the timely introduction of bitGLD, we are entering into an exciting time!  +5%
Title: Re: Next bitAsset to go: bitGLD and bitEUR
Post by: Riverhead on September 13, 2014, 07:31:02 pm
Added GLD to my feed. Will need to look into the EUR feed which isn't working currently.
Title: Re: Next bitAsset to go: bitGLD and bitEUR
Post by: xeroc on September 13, 2014, 07:34:25 pm
Code: [Select]
diff --git a/btsxfeed/btsx_feed.py b/btsxfeed/btsx_feed.py
index 6d3a6bf..5dc6eac 100755
--- a/btsxfeed/btsx_feed.py
+++ b/btsxfeed/btsx_feed.py
@@ -42,6 +42,7 @@ def fetch_from_btc38():
     price["CNY"].append(price_cny)
     price["USD"].append(price_cny/rate_usd_cny)
     price["GLD"].append(price_cny/rate_xau_cny)
+    price["EUR"].append(price_cny/rate_usd_cny*rate_usd_eur)
   except:
     print "Warning: unknown error"
     return
@@ -59,16 +60,17 @@ def fetch_from_bter():
     price["CNY"].append(price_cny)
     price["USD"].append(price_cny/rate_usd_cny)
     price["GLD"].append(price_cny/rate_xau_cny)
+    price["EUR"].append(price_cny/rate_usd_cny*rate_usd_eur)
   except:
     print "Warning: unknown error"
     return
 
 def get_rate_from_yahoo():
   global headers
-  global rate_usd_cny, rate_xau_cny
+  global rate_usd_cny, rate_xau_cny, rate_usd_eur
   try:
     url="http://download.finance.yahoo.com/d/quotes.csv"
-    params = {'s':'USDCNY=X,XAUCNY=X','f':'l1','e':'.csv'}
+    params = {'s':'USDCNY=X,XAUCNY=X,USDEUR=X','f':'l1','e':'.csv'}
     responce = requests.get(url=url, headers=headers,params=params)
     pos = posnext = 0
     posnext = responce.text.find("\n", pos)
@@ -78,6 +80,10 @@ def get_rate_from_yahoo():
     posnext = responce.text.find("\n", pos)
     rate_xau_cny = float(responce.text[pos:posnext])
     print "Fetch: rate xau/cny", rate_xau_cny
+    pos = posnext + 1
+    posnext = responce.text.find("\n", pos)
+    rate_usd_eur = float(responce.text[pos:posnext])
+    print "Fetch: rate usd/eur", rate_usd_eur
   except:
     print "Warning: unknown error, try again after 1 seconds"
     time.sleep(1)
@@ -122,6 +128,7 @@ def confirm():
 
 rate_usd_cny = 0.0
 rate_xau_cny = 0.0
+rate_usd_eur = 0.0
 get_rate_from_yahoo()
 
 price = {}
Maybe this helps

quick and durty ... gonna pimp it a little tomorrow ... going from btsx to cny to usd to eur is kind of .... ugly
Title: Re: Next bitAsset to go: bitGLD and bitEUR
Post by: amencon on September 14, 2014, 10:27:49 pm
Updated the command btsx_feed_auto.py:

Code: [Select]
./btsx_feed_auto.py USD BTC CNY GLD EUR


 +5% +5% +5%
I've matched my feed script for the same assets, hopefully we can get the needed 51 quickly.
Title: Re: Next bitAsset to go: bitGLD and bitEUR
Post by: Methodise on September 15, 2014, 01:00:41 am
Ready to play.
Title: Re: Next bitAsset to go: bitGLD and bitEUR
Post by: Riverhead on September 15, 2014, 02:25:05 am
Only 29 bitGLD feeds. How can everyone be so quick to update their client but be so slow on providing a feed?
Title: Re: Next bitAsset to go: bitGLD and bitEUR
Post by: Method-X on September 15, 2014, 02:28:02 am
Bit Gold is what Nick Szabo originally set out to create. Once price feeds and market depth are sufficient, his dream will be complete.

Bit Gold (https://en.bitcoin.it/wiki/Bit_Gold_proposal) -> Bitcoin -> BitGLD
Title: Re: Next bitAsset to go: bitGLD and bitEUR
Post by: alt on September 15, 2014, 03:45:10 am
have update btsx_feed_auto.py, now support more asset except: "PTS", "PPC", "LTC", "WTI", "SLV"
I don't know how to get WTI and SLV from yahoo.
Title: Re: Next bitAsset to go: bitGLD and bitEUR
Post by: liondani on September 15, 2014, 03:47:16 am
come on guys!  we can manually update the feeds...