Author [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] Topic: Next bitAsset to go: bitGLD and bitEUR  (Read 796 times)

0 Members and 1 Guest are viewing this topic.

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12267
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BTS: xeroc
  • GitHub: xeroc
Next bitAsset to go: bitGLD and bitEUR
« 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
  }
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

Offline biophil

  • Hero Member
  • *****
  • Posts: 814
  • Incentives run the world
    • View Profile
    • Sign up for a Bitshares account!
  • BTS: zebulon
Re: Next bitAsset to go: bitGLD and bitEUR
« Reply #1 on: September 13, 2014, 02:35:14 PM »
How exciting!

Offline liondani

Re: Next bitAsset to go: bitGLD and bitEUR
« Reply #2 on: September 13, 2014, 02:41:49 PM »
I am ALL-IN !!!

 +5% +5% +5%
  https://bitshares.OPENLEDGER.info/?r=GREECE  | You are in Control | BUY | SELL | SHORT | SWAP | LOAN | TRADE |  

Offline spartako

  • Sr. Member
  • ****
  • Posts: 401
    • View Profile
Re: Next bitAsset to go: bitGLD and bitEUR
« Reply #3 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 %
wallet_account_set_approval spartako

Offline serejandmyself

  • Sr. Member
  • ****
  • Posts: 358
    • View Profile
Re: Next bitAsset to go: bitGLD and bitEUR
« Reply #4 on: September 13, 2014, 02:51:45 PM »
Gold please
btsx - bitsharesrussia

Offline liondani

Re: Next bitAsset to go: bitGLD and bitEUR
« Reply #5 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%
  https://bitshares.OPENLEDGER.info/?r=GREECE  | You are in Control | BUY | SELL | SHORT | SWAP | LOAN | TRADE |  

Offline CLains

  • Hero Member
  • *****
  • Posts: 2610
    • View Profile
  • BTS: clains
Re: Next bitAsset to go: bitGLD and bitEUR
« Reply #6 on: September 13, 2014, 03:22:10 PM »
I like gold.
Vote for BTS-2 witness: spectral (1.6.30)

Follow https://steemit.com/@clains

Offline kisa

  • Sr. Member
  • ****
  • Posts: 240
    • View Profile
Re: Next bitAsset to go: bitGLD and bitEUR
« Reply #7 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?)
« Last Edit: September 13, 2014, 03:57:51 PM by kisa0145 »

Offline speedy

  • Hero Member
  • *****
  • Posts: 1160
    • View Profile
  • BTS: speedy
Re: Next bitAsset to go: bitGLD and bitEUR
« Reply #8 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.

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12267
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BTS: xeroc
  • GitHub: xeroc
Re: Next bitAsset to go: bitGLD and bitEUR
« Reply #9 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
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

Offline speedy

  • Hero Member
  • *****
  • Posts: 1160
    • View Profile
  • BTS: speedy
Re: Next bitAsset to go: bitGLD and bitEUR
« Reply #10 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.

Offline serejandmyself

  • Sr. Member
  • ****
  • Posts: 358
    • View Profile
Re: Next bitAsset to go: bitGLD and bitEUR
« Reply #11 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  :)
btsx - bitsharesrussia

Offline cube

  • Hero Member
  • *****
  • Posts: 1404
  • Bit by bit, we will get there!
    • View Profile
  • BTS: bitcube
  • Witness: bitcube
Re: Next bitAsset to go: bitGLD and bitEUR
« Reply #12 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%
ID: bitcube
bitcube is a dedicated witness and committe member. Please vote for bitcube.

Offline Riverhead

Re: Next bitAsset to go: bitGLD and bitEUR
« Reply #13 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.

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12267
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BTS: xeroc
  • GitHub: xeroc
Re: Next bitAsset to go: bitGLD and bitEUR
« Reply #14 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
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

 

Google+