BitShares Forum
Main => General Discussion => Topic started 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?
{
"delegate_name": "delegate.xeroc",
"price": 3.0889758393127e-05,
"last_update": "20140913T133400",
"asset_symbol": "GLD",
"median_price": null
}
-
How exciting!
-
I am ALL-IN !!!
+5% +5% +5%
-
Updated the command btsx_feed_auto.py:
./btsx_feed_auto.py USD BTC CNY GLD EUR
GLD is published for spartako,spartako1,spartako2
{
"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:
================= 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 %
-
Gold please
-
Updated the command btsx_feed_auto.py:
./btsx_feed_auto.py USD BTC CNY GLD EUR
+5% +5% +5%
-
I like gold.
-
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?)
-
Before we get BitGold going, perhaps we should give BitBTC some love? That market is really thin.
-
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
-
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.
-
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 :)
-
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%
-
Added GLD to my feed. Will need to look into the EUR feed which isn't working currently.
-
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
-
Updated the command btsx_feed_auto.py:
./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.
-
Ready to play.
-
Only 29 bitGLD feeds. How can everyone be so quick to update their client but be so slow on providing a feed?
-
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
-
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.
-
come on guys! we can manually update the feeds...