BitShares Forum

Main => General Discussion => Topic started by: bytemaster on August 31, 2014, 08:02:22 pm

Title: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: bytemaster on August 31, 2014, 08:02:22 pm
I will be voting out everyone who hasn't upgraded to 0.4.10 and enabling the markets within the next couple of hours. 

Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: puppies on August 31, 2014, 08:25:15 pm
I'm on 0.4.10 and alts script is working perfectly to update feeds
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: spartako on August 31, 2014, 08:29:23 pm
spartako,spartako1,spartako2 active delegates upgraded to 0.4.10 and published feeds with command: btsx_feed_auto.py USD BTC CNY
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: Xeldal on August 31, 2014, 08:31:40 pm
Active:
delegate.xeldal
delegate2.xeldal
Standby:
delegate3.xeldal

0.4.10 with price feed via btsx_feed_auto.py USD BTC CNY
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: ripplexiaoshan on August 31, 2014, 08:44:29 pm
btsx.chinesecommunity has updated to 0.4.10 and published all the prices feeds. +5%

Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: maqifrnswa on August 31, 2014, 08:50:01 pm
active: maqifrnswa
standby: delegate1.maqifrnswa

version 0.4.10, and running bitsuperlab's script for updating feeds
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: svk on August 31, 2014, 09:41:11 pm
Upgraded since this morning, just updated all three feeds on all three delegates as well.

A question for you BM: how come in the blockchain all feed ratios are stored as 0.0x and not their actual value?

See this as an example for my price feed of 0.192 for CNY:

http://bitsharesblocks.com/blocks/block?id=366726

It's listed as 0.0192 there, but in the get_feed_for_asset command the actual ratio is correct. Is there a fixed multiplier per asset to convert them to the actual ratios?
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: Ggozzo on August 31, 2014, 10:02:15 pm
When I get voted back in, I will post the feeds again.
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: yinchanggong on August 31, 2014, 10:24:14 pm
google.helloworld and microsoft.helloworld   updated to 0.4.10 and published all three feeds.

BTW, google.helloworld missed his first block at his 2011st block, which is a record, right? +5%
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: wackou on August 31, 2014, 10:35:07 pm
wackou-delegate updated and feeds posted
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: emski on August 31, 2014, 10:45:08 pm
I'm having issues publishing price feed:

Code: [Select]
emski (unlocked) >>> blockchain_list_delegates 25 1
ID    NAME (* next in line)           APPROVAL       PRODUCED MISSED   RELIABILITY   PAY RATE PAY BALANCE         LAST BLOCK
============================================================================================================================
9811  emski.bitdelegate               10.02356077 %  3035     45       98.54 %       100 %    4,055.55036 BTSX    339478
emski (unlocked) >>> wallet_publish_price_feed emski.bitdelegate 0.031 USD
10 assert_exception: Assert Exception
my->_blockchain->is_active_delegate( current_account->id ):
    {}
    th_a  wallet.cpp:2840 publish_price

    {"account_to_publish_under":"emski.bitdelegate","amount_per_xts":0.031,"amount_asset_symbol":"USD","sign":true}
    th_a  wallet.cpp:2892 publish_price

    {}
    th_a  common_api_client.cpp:1699 wallet_publish_price_feed

    {"command":"wallet_publish_price_feed"}
    th_a  cli.cpp:481 execute_command

UPDATE: It works now. Perhaps I should wait for the round to end.
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: bytemaster on August 31, 2014, 10:55:47 pm
Markets for USD and BTC are now live.... trade at will.
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: ripplexiaoshan on August 31, 2014, 10:58:18 pm
Markets for USD and BTC are now live.... trade at will.

Can someone confirm this? The depth seems fine, but market is still frozen.
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: graffenwalder on August 31, 2014, 11:02:12 pm
Bitusd trades have been made
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: tonyk on August 31, 2014, 11:03:13 pm
Markets for USD and BTC are now live.... trade at will.

Do you mind telling us the new rules in effect now????
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: muse-umum on August 31, 2014, 11:08:17 pm
*.bts500 are on 0.4.10 and will update the price feeds everytime when the prices on exchanges move +/- by more than 10% or at least once every 24 hours.
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: gyhy on August 31, 2014, 11:20:46 pm
dnsdac updated 0.4.10 and price feeds published
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: x.ebit on August 31, 2014, 11:32:30 pm
Updated to 0.4.10 and price feeds published +5% +5%

x.ebit
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: onceuponatime on August 31, 2014, 11:36:59 pm
Markets for USD and BTC are now live.... trade at will.

On the bitUSD market I have put in a bid that matches an ask (not short) and it is not going through - just sitting there as the highest bid. What's going on with that?
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: cgafeng on August 31, 2014, 11:42:27 pm
running 0.4.10 and price feeds published

delegate.cgafeng
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: bytemaster on August 31, 2014, 11:52:50 pm
Markets for USD and BTC are now live.... trade at will.

On the bitUSD market I have put in a bid that matches an ask (not short) and it is not going through - just sitting there as the highest bid. What's going on with that?

Shorts that are above the average are not matched and the GUI hasn't been updated to filter them out.
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: onceuponatime on September 01, 2014, 12:12:27 am
Markets for USD and BTC are now live.... trade at will.

On the bitUSD market I have put in a bid that matches an ask (not short) and it is not going through - just sitting there as the highest bid. What's going on with that?

Shorts that are above the average are not matched and the GUI hasn't been updated to filter them out.


But it is not a short, it is an ask:   Ask   29.9904   7,091.8731   212,688.13280

And my bid:  29.9904   5,000.00   149,952.00
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: liondani on September 01, 2014, 12:13:54 am
Updated to 0.4.10 and all price feeds published again with my new active delegate:

delegate.liondani


PS Sorry to miss the first blocks, I just came from work and I saw my new active delegate without mistakenly
     having set block production  to TRUE ... my apologizes.
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: ripplexiaoshan on September 01, 2014, 12:14:27 am
Markets for USD and BTC are now live.... trade at will.

On the bitUSD market I have put in a bid that matches an ask (not short) and it is not going through - just sitting there as the highest bid. What's going on with that?

Shorts that are above the average are not matched and the GUI hasn't been updated to filter them out.

No wonder, but it's very confusing. When those orders will be filtered out?
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: bytemaster on September 01, 2014, 12:18:19 am
Markets for USD and BTC are now live.... trade at will.

On the bitUSD market I have put in a bid that matches an ask (not short) and it is not going through - just sitting there as the highest bid. What's going on with that?

Shorts that are above the average are not matched and the GUI hasn't been updated to filter them out.

No wonder, but it's very confusing. When those orders will be filtered out?

I am working on that right now.  The market GUI is a mess right now, but I think DAC Sun can role out updates without a new release.   
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: speedy on September 01, 2014, 12:23:17 am
Markets for USD and BTC are now live.... trade at will.

On the bitUSD market I have put in a bid that matches an ask (not short) and it is not going through - just sitting there as the highest bid. What's going on with that?

Shorts that are above the average are not matched and the GUI hasn't been updated to filter them out.

No wonder, but it's very confusing. When those orders will be filtered out?

I am working on that right now.  The market GUI is a mess right now, but I think DAC Sun can role out updates without a new release.

So is preventing shorts above average meant to stop shorters speculatively decreasing their asks in a clearly bullish BTSX market, just so that they can be first to match the bids? i.e. to fix the peg deviation.
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: dominic on September 01, 2014, 12:28:57 am
Very confusing indeed. I love the concept of BitShares, but all of these rules/restrictions on trading activity are ridiculous. Just let the market work naturally for god's sake. It's what people want.
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: tonyk on September 01, 2014, 12:31:30 am
Markets for USD and BTC are now live.... trade at will.

On the bitUSD market I have put in a bid that matches an ask (not short) and it is not going through - just sitting there as the highest bid. What's going on with that?

Shorts that are above the average are not matched and the GUI hasn't been updated to filter them out.


But it is not a short, it is an ask:   Ask   29.9904   7,091.8731   212,688.13280

And my bid:  29.9904   5,000.00   149,952.00
I guess the market is now greedier. I bought some of those giving the market 0.0001BTSX...
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: speedy on September 01, 2014, 12:34:16 am
Very confusing indeed. I love the concept of BitShares, but all of these rules/restrictions on trading activity are ridiculous. Just let the market work naturally for god's sake. It's what people want.

Whilst it would be great if things were just simple, what has been happening in reality is that when BTSX hits a peak, everyone desperately pays +20% for BitUSD. When BTSX hits a bottom, people pay less for it.

So instead of being pegged dollar, BitUSD just becomes some kind of trading game. That's what these rules are trying to solve.
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: liondani on September 01, 2014, 12:35:27 am
Very confusing indeed. I love the concept of BitShares, but all of these rules/restrictions on trading activity are ridiculous. Just let the market work naturally for god's sake. It's what people want.

My guts telling me: "he is right!"
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: dcchong on September 01, 2014, 12:43:54 am
dc-delegate
bitsharesx-delegate


updated to 0.4.10,

and published prices for USD, BTC, and CNY. ;D
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: clayop on September 01, 2014, 12:45:09 am
 
Very confusing indeed. I love the concept of BitShares, but all of these rules/restrictions on trading activity are ridiculous. Just let the market work naturally for god's sake. It's what people want.
+5%
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: theoretical on September 01, 2014, 12:56:13 am
Markets for USD and BTC are now live.... trade at will.

On the bitUSD market I have put in a bid that matches an ask (not short) and it is not going through - just sitting there as the highest bid. What's going on with that?

Shorts that are above the average are not matched and the GUI hasn't been updated to filter them out.


But it is not a short, it is an ask:   Ask   29.9904   7,091.8731   212,688.13280

And my bid:  29.9904   5,000.00   149,952.00

I figured out why this is happening and filed an issue on Github:  https://github.com/BitShares/web_wallet/issues/303
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: alt on September 01, 2014, 01:00:02 am
delegate.bitsuperlab
delegate-alt
delegate-watchman
delegate-baozi

has updated, and publish the feed price for USD,BTC,CNY automatic
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: onceuponatime on September 01, 2014, 01:07:25 am
Markets for USD and BTC are now live.... trade at will.

On the bitUSD market I have put in a bid that matches an ask (not short) and it is not going through - just sitting there as the highest bid. What's going on with that?

Shorts that are above the average are not matched and the GUI hasn't been updated to filter them out.


But it is not a short, it is an ask:   Ask   29.9904   7,091.8731   212,688.13280

And my bid:  29.9904   5,000.00   149,952.00

I figured out why this is happening and filed an issue on Github:  https://github.com/BitShares/web_wallet/issues/303

Thanks.
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: Riverhead on September 01, 2014, 01:09:05 am
delegate.bitsuperlab
delegate-alt
delegate-watchman
delegate-baozi

has updated, and publish the feed price for USD,BTC,CNY automatic


Ditto for riverhead-del-server-1 since I'm using Alt's tools :) .
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: Webber on September 01, 2014, 01:15:50 am
delegate.webber have updated to 0.4.10,and will feed price auto
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: yidaidaxia on September 01, 2014, 01:45:14 am
now.dacwin
future.dacwin
upgraded to 0.4.10 already
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: taoljj on September 01, 2014, 02:54:51 am
Done.
delegate.taolje
using alt's tools,publish the feed price for USD,BTC,CNY automatic
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: bitcoinerS on September 01, 2014, 03:42:04 am
delegate node upgraded, feeds published.
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: yidaidaxia on September 01, 2014, 03:43:27 am
now.dacwin
future.dacwin
upgraded to 0.4.10 already

feed price for bitusd, bitcny, bitbtc available now!
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: testz on September 01, 2014, 04:02:21 am
Updated to 0.4.10
Updated price feeds USD, BTC, and CNY
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: king on September 01, 2014, 04:06:19 am
sun.delegate.service
moon.delegate.service

updated to 0.4.10
and publish price feed usd,cny and btc...yesterday
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: coolspeed on September 01, 2014, 04:24:39 am
delegate.coolspeed
dac.coolspeed

updated to 0.4.10
and have fed all the prices needed.

auto feed will be deployed soon. (thanks bitsuperlab)



Sent from my iPhone using Tapatalk
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: crazybit on September 01, 2014, 04:42:19 am
upgraded and published the price feed.
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: CalabiYau on September 01, 2014, 05:48:40 am
updated price feeds
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: happyshares on September 01, 2014, 07:24:59 am
Tried to update more then once, but not visible when i calling blockchain_get_feeds_from_delegate.
Seems i'm on a fork :-[
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: svk on September 01, 2014, 08:04:49 am
Tried to update more then once, but not visible when i calling blockchain_get_feeds_from_delegate.
Seems i'm on a fork :-[

happyshares-2 has been missing blocks so it might be on a fork yea. Restart the client with --rebuild-index if that's the case, will take a couple of minutes but should get you back on the right fork.

If you wanna have a quick check if your delegate has been missing blocks recently, just go here and check the "last missed blocks" table:

http://www.bitsharesblocks.com/home
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: Harvey on September 01, 2014, 12:42:30 pm
hear.me.roar.lion   
fire.and.blood.dragon 
my.watch.begins.nightswatch

updated to 0.4.10
with auto-price-feeding
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: coolspeed on September 01, 2014, 03:23:44 pm
delegate.coolspeed
dac.coolspeed

updated to 0.4.10
and have fed all the prices needed.

auto feed will be deployed soon. (thanks bitsuperlab)



Sent from my iPhone using Tapatalk

Auto feed deployed.
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: yidaidaxia on September 01, 2014, 03:26:58 pm
now.dacwin
future.dacwin
upgraded to 0.4.10 already

feed price for bitusd, bitcny, bitbtc available now!

Auto feed deployed.
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: happyshares on September 01, 2014, 03:32:43 pm

happyshares-2 has been missing blocks so it might be on a fork yea. Restart the client with --rebuild-index if that's the case, will take a couple of minutes but should get you back on the right fork.

If you wanna have a quick check if your delegate has been missing blocks recently, just go here and check the "last missed blocks" table:

http://www.bitsharesblocks.com/home

thanks for your kindness svk, node is running again.
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: amencon on September 01, 2014, 08:11:44 pm
Auto-feed running since last night, thanks!
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: CalabiYau on September 02, 2014, 08:10:12 am
calabiyau

neuronics

Auto-feed established
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: alt on September 02, 2014, 11:48:40 pm
there are only 47 delegates who publish price in time.(at least every 24 hours)
Code: [Select]
a.delegate.xeroc
b.delegate.xeroc
bitcoiners
bits
bitsuperlab
calabiyau
cny.bts500
coolspeed
dac.bts500
dac.coolspeed
daslab
delegate1-galt
delegate1.john-galt
delegate1.maqifrnswa
delegate2.svk31
delegate3.svk31
delegate-alt
delegate-baozi
delegate.bitsuperlab
delegate.coinhoarder
delegate.coolspeed
delegate.liondani
delegate.svk31
delegate.taolje
delegate-watchman
delegate.xeroc
emski.bitdelegate
fox
future.dacwin
happyshares-2
hear.me.roar.lion
init5
init53
init58
init65
init88
init9
lotto-delegate
maqifrnswa
moon.delegate.service
my.watch.begins.nightswatch
now.dacwin
riverhead-del-server-1
sun.delegate.service
usd.bts500
www2.minebitshares-com
www.minebitshares-com
Code: [Select]

delegate (unlocked) >>> blockchain_get_feeds_for_asset USD
[{
  },{
    "delegate_name": "init5",
    "price": 0.028467925757082381,
    "last_update": "20140902T024920",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "init9",
    "price": 0.028467925757082381,
    "last_update": "20140902T024920",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "init53",
    "price": 0.028467925757082381,
    "last_update": "20140902T024920",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "init58",
    "price": 0.028467925757082381,
    "last_update": "20140902T024920",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "init65",
    "price": 0.028467925757082381,
    "last_update": "20140902T024920",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "init88",
    "price": 0.028467925757082381,
    "last_update": "20140902T024920",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "calabiyau",
    "price": 0.027908432951126279,
    "last_update": "20140902T181050",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "fox",
    "price": 0.029587949999999998,
    "last_update": "20140902T223610",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "bitsuperlab",
    "price": 0.027255425057747994,
    "last_update": "20140902T052140",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "daslab",
    "price": 0.027199999999999998,
    "last_update": "20140902T152950",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "coolspeed",
    "price": 0.027932397481985127,
    "last_update": "20140902T091020",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "bitcoiners",
    "price": 0.027745791656501581,
    "last_update": "20140902T204400",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "bits",
    "price": 0.027745791656501581,
    "last_update": "20140902T204400",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "happyshares-2",
    "price": 0.0281613401642677,
    "last_update": "20140902T181610",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate-alt",
    "price": 0.028337675024421999,
    "last_update": "20140902T002650",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate-baozi",
    "price": 0.028337675024421999,
    "last_update": "20140902T002650",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate-watchman",
    "price": 0.028337675024421999,
    "last_update": "20140902T002650",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "lotto-delegate",
    "price": 0.028500000000000001,
    "last_update": "20140902T121220",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "maqifrnswa",
    "price": 0.027799814673321079,
    "last_update": "20140902T124610",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "riverhead-del-server-1",
    "price": 0.028165004798542542,
    "last_update": "20140902T104130",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate1-galt",
    "price": 0.02751402781166138,
    "last_update": "20140902T170000",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "emski.bitdelegate",
    "price": 0.028500000000000001,
    "last_update": "20140902T121220",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate.xeroc",
    "price": 0.02814060542967288,
    "last_update": "20140902T093420",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "a.delegate.xeroc",
    "price": 0.02814060542967288,
    "last_update": "20140902T093420",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "b.delegate.xeroc",
    "price": 0.02814060542967288,
    "last_update": "20140902T093420",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate.taolje",
    "price": 0.027255425057747994,
    "last_update": "20140902T052140",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "cny.bts500",
    "price": 0.027981621533707406,
    "last_update": "20140902T175150",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "usd.bts500",
    "price": 0.027981621533707406,
    "last_update": "20140902T175150",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "dac.bts500",
    "price": 0.027981621533707406,
    "last_update": "20140902T175150",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate.bitsuperlab",
    "price": 0.028337675024421999,
    "last_update": "20140902T002650",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "my.watch.begins.nightswatch",
    "price": 0.027222890978299767,
    "last_update": "20140902T052320",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "hear.me.roar.lion",
    "price": 0.027222890978299767,
    "last_update": "20140902T052320",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate.liondani",
    "price": 0.027907000000000001,
    "last_update": "20140902T230400",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "www.minebitshares-com",
    "price": 0.027735302729609258,
    "last_update": "20140902T051850",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "www2.minebitshares-com",
    "price": 0.027222890978299767,
    "last_update": "20140902T052150",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate.svk31",
    "price": 0.0281,
    "last_update": "20140902T091710",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate2.svk31",
    "price": 0.0281,
    "last_update": "20140902T092630",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate3.svk31",
    "price": 0.0281,
    "last_update": "20140902T091710",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate.coolspeed",
    "price": 0.027932397481985127,
    "last_update": "20140902T091020",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "dac.coolspeed",
    "price": 0.027932397481985127,
    "last_update": "20140902T091020",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "now.dacwin",
    "price": 0.027969809847585271,
    "last_update": "20140902T094010",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "future.dacwin",
    "price": 0.027969809847585271,
    "last_update": "20140902T094010",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate1.maqifrnswa",
    "price": 0.027799814673321079,
    "last_update": "20140902T124610",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate1.john-galt",
    "price": 0.027933642351793121,
    "last_update": "20140902T171710",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate.coinhoarder",
    "price": 0.027751000000000001,
    "last_update": "20140902T193010",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "sun.delegate.service",
    "price": 0.028029999999999999,
    "last_update": "20140902T122850",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "moon.delegate.service",
    "price": 0.028029999999999999,
    "last_update": "20140902T122840",
    "asset_symbol": null,
    "median_price": null
  }
]
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: Xeldal on September 03, 2014, 12:07:19 am
I restarted mine with just ./btsx_feed_auto.py  :-[

forgot the USD CNY GLD BTC at the end

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

Thanks alt.
 
*.xeldal updated.
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: alt on September 03, 2014, 12:28:31 am
wow, you have published price for  bitgold already  :D
I restarted mine with just ./btsx_feed_auto.py  :-[

forgot the USD CNY GLD BTC at the end

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

Thanks alt.
 
*.xeldal updated.
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: amencon on September 03, 2014, 01:40:09 am
Hmm think my script file was bad.  I've re-set it up and I believe it should be working correctly now.  Thanks for the alert, I'll keep a closer eye to verify it keeps updating correctly.
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: puppies on September 03, 2014, 03:02:36 am
Tried to update more then once, but not visible when i calling blockchain_get_feeds_from_delegate.
Seems i'm on a fork :-[

happyshares-2 has been missing blocks so it might be on a fork yea. Restart the client with --rebuild-index if that's the case, will take a couple of minutes but should get you back on the right fork.

If you wanna have a quick check if your delegate has been missing blocks recently, just go here and check the "last missed blocks" table:

http://www.bitsharesblocks.com/home
I like the new look SVK.  I especially like that you list unclaimed genesis balance.  Forgive me if you did this awhile ago and it took me a long time to notice.
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: puppies on September 03, 2014, 03:29:41 am
there are only 47 delegates who publish price in time.(at least every 24 hours)
Code: [Select]
a.delegate.xeroc
b.delegate.xeroc
bitcoiners
bits
bitsuperlab
calabiyau
cny.bts500
coolspeed
dac.bts500
dac.coolspeed
daslab
delegate1-galt
delegate1.john-galt
delegate1.maqifrnswa
delegate2.svk31
delegate3.svk31
delegate-alt
delegate-baozi
delegate.bitsuperlab
delegate.coinhoarder
delegate.coolspeed
delegate.liondani
delegate.svk31
delegate.taolje
delegate-watchman
delegate.xeroc
emski.bitdelegate
fox
future.dacwin
happyshares-2
hear.me.roar.lion
init5
init53
init58
init65
init88
init9
lotto-delegate
maqifrnswa
moon.delegate.service
my.watch.begins.nightswatch
now.dacwin
riverhead-del-server-1
sun.delegate.service
usd.bts500
www2.minebitshares-com
www.minebitshares-com
Code: [Select]

delegate (unlocked) >>> blockchain_get_feeds_for_asset USD
[{
  },{
    "delegate_name": "init5",
    "price": 0.028467925757082381,
    "last_update": "20140902T024920",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "init9",
    "price": 0.028467925757082381,
    "last_update": "20140902T024920",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "init53",
    "price": 0.028467925757082381,
    "last_update": "20140902T024920",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "init58",
    "price": 0.028467925757082381,
    "last_update": "20140902T024920",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "init65",
    "price": 0.028467925757082381,
    "last_update": "20140902T024920",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "init88",
    "price": 0.028467925757082381,
    "last_update": "20140902T024920",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "calabiyau",
    "price": 0.027908432951126279,
    "last_update": "20140902T181050",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "fox",
    "price": 0.029587949999999998,
    "last_update": "20140902T223610",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "bitsuperlab",
    "price": 0.027255425057747994,
    "last_update": "20140902T052140",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "daslab",
    "price": 0.027199999999999998,
    "last_update": "20140902T152950",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "coolspeed",
    "price": 0.027932397481985127,
    "last_update": "20140902T091020",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "bitcoiners",
    "price": 0.027745791656501581,
    "last_update": "20140902T204400",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "bits",
    "price": 0.027745791656501581,
    "last_update": "20140902T204400",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "happyshares-2",
    "price": 0.0281613401642677,
    "last_update": "20140902T181610",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate-alt",
    "price": 0.028337675024421999,
    "last_update": "20140902T002650",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate-baozi",
    "price": 0.028337675024421999,
    "last_update": "20140902T002650",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate-watchman",
    "price": 0.028337675024421999,
    "last_update": "20140902T002650",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "lotto-delegate",
    "price": 0.028500000000000001,
    "last_update": "20140902T121220",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "maqifrnswa",
    "price": 0.027799814673321079,
    "last_update": "20140902T124610",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "riverhead-del-server-1",
    "price": 0.028165004798542542,
    "last_update": "20140902T104130",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate1-galt",
    "price": 0.02751402781166138,
    "last_update": "20140902T170000",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "emski.bitdelegate",
    "price": 0.028500000000000001,
    "last_update": "20140902T121220",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate.xeroc",
    "price": 0.02814060542967288,
    "last_update": "20140902T093420",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "a.delegate.xeroc",
    "price": 0.02814060542967288,
    "last_update": "20140902T093420",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "b.delegate.xeroc",
    "price": 0.02814060542967288,
    "last_update": "20140902T093420",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate.taolje",
    "price": 0.027255425057747994,
    "last_update": "20140902T052140",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "cny.bts500",
    "price": 0.027981621533707406,
    "last_update": "20140902T175150",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "usd.bts500",
    "price": 0.027981621533707406,
    "last_update": "20140902T175150",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "dac.bts500",
    "price": 0.027981621533707406,
    "last_update": "20140902T175150",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate.bitsuperlab",
    "price": 0.028337675024421999,
    "last_update": "20140902T002650",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "my.watch.begins.nightswatch",
    "price": 0.027222890978299767,
    "last_update": "20140902T052320",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "hear.me.roar.lion",
    "price": 0.027222890978299767,
    "last_update": "20140902T052320",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate.liondani",
    "price": 0.027907000000000001,
    "last_update": "20140902T230400",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "www.minebitshares-com",
    "price": 0.027735302729609258,
    "last_update": "20140902T051850",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "www2.minebitshares-com",
    "price": 0.027222890978299767,
    "last_update": "20140902T052150",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate.svk31",
    "price": 0.0281,
    "last_update": "20140902T091710",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate2.svk31",
    "price": 0.0281,
    "last_update": "20140902T092630",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate3.svk31",
    "price": 0.0281,
    "last_update": "20140902T091710",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate.coolspeed",
    "price": 0.027932397481985127,
    "last_update": "20140902T091020",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "dac.coolspeed",
    "price": 0.027932397481985127,
    "last_update": "20140902T091020",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "now.dacwin",
    "price": 0.027969809847585271,
    "last_update": "20140902T094010",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "future.dacwin",
    "price": 0.027969809847585271,
    "last_update": "20140902T094010",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate1.maqifrnswa",
    "price": 0.027799814673321079,
    "last_update": "20140902T124610",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate1.john-galt",
    "price": 0.027933642351793121,
    "last_update": "20140902T171710",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate.coinhoarder",
    "price": 0.027751000000000001,
    "last_update": "20140902T193010",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "sun.delegate.service",
    "price": 0.028029999999999999,
    "last_update": "20140902T122850",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "moon.delegate.service",
    "price": 0.028029999999999999,
    "last_update": "20140902T122840",
    "asset_symbol": null,
    "median_price": null
  }
]

My script had stopped working as well.  Was showing nothing but a bunch of
Fetch: USD
Fetch: BTC
Fetch: CNY

over and over again.
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: boombastic on September 03, 2014, 04:03:38 am
Manually updated price feed for delegates:
mr.agsexplorer
mrs.agsexplorer
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: svk on September 03, 2014, 06:22:36 am


Tried to update more then once, but not visible when i calling blockchain_get_feeds_from_delegate.
Seems i'm on a fork :-[

happyshares-2 has been missing blocks so it might be on a fork yea. Restart the client with --rebuild-index if that's the case, will take a couple of minutes but should get you back on the right fork.

If you wanna have a quick check if your delegate has been missing blocks recently, just go here and check the "last missed blocks" table:

http://www.bitsharesblocks.com/home
I like the new look SVK.  I especially like that you list unclaimed genesis balance.  Forgive me if you did this awhile ago and it took me a long time to notice.

Thanks :) Think I added that this weekend, it was at 850 million when I first put it up, been decreasing steadily since.
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: spartako on September 03, 2014, 07:01:10 am
spartako,spartako1,spartako2 active delegates are using the script ./btsx_feed_auto.py USD BTC CNY and it seems working:

Code: [Select]
default (unlocked) >>> blockchain_get_feeds_from_delegate spartako
[{
    "delegate_name": "spartako",
    "price": 5.9855000000000002e-05,
    "last_update": "20140903T054800",
    "asset_symbol": "BTC",
    "median_price": 6.0600000000000003e-05
  },{
    "delegate_name": "spartako",
    "price": 0.18329999999999999,
    "last_update": "20140903T021940",
    "asset_symbol": "CNY",
    "median_price": 0.18149999999999999
  },{
    "delegate_name": "spartako",
    "price": 0.029809240376640487,
    "last_update": "20140903T021940",
    "asset_symbol": "USD",
    "median_price": 0.029499999999999998
  }
]

default (unlocked) >>> blockchain_get_feeds_from_delegate spartako1
[{
    "delegate_name": "spartako1",
    "price": 5.9855000000000002e-05,
    "last_update": "20140903T054800",
    "asset_symbol": "BTC",
    "median_price": 6.0600000000000003e-05
  },{
    "delegate_name": "spartako1",
    "price": 0.18329999999999999,
    "last_update": "20140903T021940",
    "asset_symbol": "CNY",
    "median_price": 0.18149999999999999
  },{
    "delegate_name": "spartako1",
    "price": 0.029809240376640487,
    "last_update": "20140903T021940",
    "asset_symbol": "USD",
    "median_price": 0.029499999999999998
  }
]

default (unlocked) >>> blockchain_get_feeds_from_delegate spartako2
[{
    "delegate_name": "spartako2",
    "price": 5.9855000000000002e-05,
    "last_update": "20140903T054800",
    "asset_symbol": "BTC",
    "median_price": 6.0600000000000003e-05
  },{
    "delegate_name": "spartako2",
    "price": 0.18329999999999999,
    "last_update": "20140903T021940",
    "asset_symbol": "CNY",
    "median_price": 0.18149999999999999
  },{
    "delegate_name": "spartako2",
    "price": 0.029809240376640487,
    "last_update": "20140903T021940",
    "asset_symbol": "USD",
    "median_price": 0.029499999999999998
  }
]

Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: CalabiYau on September 04, 2014, 08:14:46 am

My script had stopped working as well.  Was showing nothing but a bunch of
Fetch: USD
Fetch: BTC
Fetch: CNY

over and over again.

Same here. Script stops updating every time after ~ 12 hours

Code: [Select]
================= 20140904T165319 ==================
Fetch: USD [0.031113572685215352, 0.031001172867661433] ,ave: 0.0310573727764 ,change: 0.27 %
Fetch: GLD [2.4534033199813388e-05, 2.4445402399248617e-05] ,ave: 2.44897177995e-05 ,change: -4.45 %
Fetch: BTC [6.78e-05, 6.404e-05] ,ave: 6.592e-05 ,change: -2.93 %
Fetch: CNY [0.191, 0.19031] ,ave: 0.190655 ,change: 0.27 %

================= 20140904T165423 ==================
Fetch: USD [0.031113572685215352, 0.031001172867661433] ,ave: 0.0310573727764 ,change: 0.27 %
Fetch: GLD [2.4534033199813388e-05, 2.4445402399248617e-05] ,ave: 2.44897177995e-05 ,change: -4.45 %
Fetch: BTC [6.78e-05, 6.404e-05] ,ave: 6.592e-05 ,change: -2.93 %
Fetch: CNY [0.191, 0.19031] ,ave: 0.190655 ,change: 0.27 %
Fetch: rate usd/cny 6.1388
Fetch: rate xau/cny 7787.252

================= 20140904T165526 ==================
Fetch: USD [0.031113572685215352, 0.031001172867661433] ,ave: 0.0310573727764 ,change: 0.27 %
Fetch: GLD [2.4527265844228488e-05, 2.443865949117866e-05] ,ave: 2.44829626677e-05 ,change: -4.48 %
Fetch: BTC [6.78e-05, 6.4e-05] ,ave: 6.59e-05 ,change: -2.96 %
Fetch: CNY [0.191, 0.19031] ,ave: 0.190655 ,change: 0.27 %

================= 20140904T165629 ==================
Fetch: rate usd/cny 6.1388
Fetch: rate xau/cny 7792.8999
Fetch: rate usd/cny 6.1388
Fetch: rate xau/cny 7790.7515
Fetch: rate usd/cny 6.1388
Fetch: rate xau/cny 7792.2861
Fetch: rate usd/cny 6.1388
Fetch: rate xau/cny 7796.5835
Fetch: rate usd/cny 6.1388
Fetch: rate xau/cny 7794.7417
Fetch: rate usd/cny 6.1388
Fetch: rate xau/cny 7785.7178
Fetch: rate usd/cny 6.1388
Fetch: rate xau/cny 7791.6724
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: huzhuzhu on September 04, 2014, 10:55:36 am
same here. this auto feed script is broken

there are only 47 delegates who publish price in time.(at least every 24 hours)
Code: [Select]
a.delegate.xeroc
b.delegate.xeroc
bitcoiners
bits
bitsuperlab
calabiyau
cny.bts500
coolspeed
dac.bts500
dac.coolspeed
daslab
delegate1-galt
delegate1.john-galt
delegate1.maqifrnswa
delegate2.svk31
delegate3.svk31
delegate-alt
delegate-baozi
delegate.bitsuperlab
delegate.coinhoarder
delegate.coolspeed
delegate.liondani
delegate.svk31
delegate.taolje
delegate-watchman
delegate.xeroc
emski.bitdelegate
fox
future.dacwin
happyshares-2
hear.me.roar.lion
init5
init53
init58
init65
init88
init9
lotto-delegate
maqifrnswa
moon.delegate.service
my.watch.begins.nightswatch
now.dacwin
riverhead-del-server-1
sun.delegate.service
usd.bts500
www2.minebitshares-com
www.minebitshares-com
Code: [Select]

delegate (unlocked) >>> blockchain_get_feeds_for_asset USD
[{
  },{
    "delegate_name": "init5",
    "price": 0.028467925757082381,
    "last_update": "20140902T024920",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "init9",
    "price": 0.028467925757082381,
    "last_update": "20140902T024920",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "init53",
    "price": 0.028467925757082381,
    "last_update": "20140902T024920",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "init58",
    "price": 0.028467925757082381,
    "last_update": "20140902T024920",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "init65",
    "price": 0.028467925757082381,
    "last_update": "20140902T024920",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "init88",
    "price": 0.028467925757082381,
    "last_update": "20140902T024920",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "calabiyau",
    "price": 0.027908432951126279,
    "last_update": "20140902T181050",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "fox",
    "price": 0.029587949999999998,
    "last_update": "20140902T223610",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "bitsuperlab",
    "price": 0.027255425057747994,
    "last_update": "20140902T052140",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "daslab",
    "price": 0.027199999999999998,
    "last_update": "20140902T152950",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "coolspeed",
    "price": 0.027932397481985127,
    "last_update": "20140902T091020",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "bitcoiners",
    "price": 0.027745791656501581,
    "last_update": "20140902T204400",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "bits",
    "price": 0.027745791656501581,
    "last_update": "20140902T204400",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "happyshares-2",
    "price": 0.0281613401642677,
    "last_update": "20140902T181610",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate-alt",
    "price": 0.028337675024421999,
    "last_update": "20140902T002650",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate-baozi",
    "price": 0.028337675024421999,
    "last_update": "20140902T002650",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate-watchman",
    "price": 0.028337675024421999,
    "last_update": "20140902T002650",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "lotto-delegate",
    "price": 0.028500000000000001,
    "last_update": "20140902T121220",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "maqifrnswa",
    "price": 0.027799814673321079,
    "last_update": "20140902T124610",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "riverhead-del-server-1",
    "price": 0.028165004798542542,
    "last_update": "20140902T104130",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate1-galt",
    "price": 0.02751402781166138,
    "last_update": "20140902T170000",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "emski.bitdelegate",
    "price": 0.028500000000000001,
    "last_update": "20140902T121220",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate.xeroc",
    "price": 0.02814060542967288,
    "last_update": "20140902T093420",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "a.delegate.xeroc",
    "price": 0.02814060542967288,
    "last_update": "20140902T093420",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "b.delegate.xeroc",
    "price": 0.02814060542967288,
    "last_update": "20140902T093420",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate.taolje",
    "price": 0.027255425057747994,
    "last_update": "20140902T052140",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "cny.bts500",
    "price": 0.027981621533707406,
    "last_update": "20140902T175150",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "usd.bts500",
    "price": 0.027981621533707406,
    "last_update": "20140902T175150",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "dac.bts500",
    "price": 0.027981621533707406,
    "last_update": "20140902T175150",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate.bitsuperlab",
    "price": 0.028337675024421999,
    "last_update": "20140902T002650",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "my.watch.begins.nightswatch",
    "price": 0.027222890978299767,
    "last_update": "20140902T052320",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "hear.me.roar.lion",
    "price": 0.027222890978299767,
    "last_update": "20140902T052320",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate.liondani",
    "price": 0.027907000000000001,
    "last_update": "20140902T230400",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "www.minebitshares-com",
    "price": 0.027735302729609258,
    "last_update": "20140902T051850",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "www2.minebitshares-com",
    "price": 0.027222890978299767,
    "last_update": "20140902T052150",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate.svk31",
    "price": 0.0281,
    "last_update": "20140902T091710",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate2.svk31",
    "price": 0.0281,
    "last_update": "20140902T092630",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate3.svk31",
    "price": 0.0281,
    "last_update": "20140902T091710",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate.coolspeed",
    "price": 0.027932397481985127,
    "last_update": "20140902T091020",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "dac.coolspeed",
    "price": 0.027932397481985127,
    "last_update": "20140902T091020",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "now.dacwin",
    "price": 0.027969809847585271,
    "last_update": "20140902T094010",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "future.dacwin",
    "price": 0.027969809847585271,
    "last_update": "20140902T094010",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate1.maqifrnswa",
    "price": 0.027799814673321079,
    "last_update": "20140902T124610",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate1.john-galt",
    "price": 0.027933642351793121,
    "last_update": "20140902T171710",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate.coinhoarder",
    "price": 0.027751000000000001,
    "last_update": "20140902T193010",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "sun.delegate.service",
    "price": 0.028029999999999999,
    "last_update": "20140902T122850",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "moon.delegate.service",
    "price": 0.028029999999999999,
    "last_update": "20140902T122840",
    "asset_symbol": null,
    "median_price": null
  }
]

My script had stopped working as well.  Was showing nothing but a bunch of
Fetch: USD
Fetch: BTC
Fetch: CNY

over and over again.
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: Riverhead on September 04, 2014, 11:20:48 am



Try doing a new pull. Mine is working fine but I updated it yesterday.
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: alt on September 04, 2014, 11:35:36 am
this means can't get price from neither bter nor btc38....
can you connect to this two site?

same here. this auto feed script is broken

there are only 47 delegates who publish price in time.(at least every 24 hours)
Code: [Select]
a.delegate.xeroc
b.delegate.xeroc
bitcoiners
bits
bitsuperlab
calabiyau
cny.bts500
coolspeed
dac.bts500
dac.coolspeed
daslab
delegate1-galt
delegate1.john-galt
delegate1.maqifrnswa
delegate2.svk31
delegate3.svk31
delegate-alt
delegate-baozi
delegate.bitsuperlab
delegate.coinhoarder
delegate.coolspeed
delegate.liondani
delegate.svk31
delegate.taolje
delegate-watchman
delegate.xeroc
emski.bitdelegate
fox
future.dacwin
happyshares-2
hear.me.roar.lion
init5
init53
init58
init65
init88
init9
lotto-delegate
maqifrnswa
moon.delegate.service
my.watch.begins.nightswatch
now.dacwin
riverhead-del-server-1
sun.delegate.service
usd.bts500
www2.minebitshares-com
www.minebitshares-com
Code: [Select]

delegate (unlocked) >>> blockchain_get_feeds_for_asset USD
[{
  },{
    "delegate_name": "init5",
    "price": 0.028467925757082381,
    "last_update": "20140902T024920",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "init9",
    "price": 0.028467925757082381,
    "last_update": "20140902T024920",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "init53",
    "price": 0.028467925757082381,
    "last_update": "20140902T024920",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "init58",
    "price": 0.028467925757082381,
    "last_update": "20140902T024920",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "init65",
    "price": 0.028467925757082381,
    "last_update": "20140902T024920",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "init88",
    "price": 0.028467925757082381,
    "last_update": "20140902T024920",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "calabiyau",
    "price": 0.027908432951126279,
    "last_update": "20140902T181050",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "fox",
    "price": 0.029587949999999998,
    "last_update": "20140902T223610",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "bitsuperlab",
    "price": 0.027255425057747994,
    "last_update": "20140902T052140",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "daslab",
    "price": 0.027199999999999998,
    "last_update": "20140902T152950",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "coolspeed",
    "price": 0.027932397481985127,
    "last_update": "20140902T091020",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "bitcoiners",
    "price": 0.027745791656501581,
    "last_update": "20140902T204400",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "bits",
    "price": 0.027745791656501581,
    "last_update": "20140902T204400",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "happyshares-2",
    "price": 0.0281613401642677,
    "last_update": "20140902T181610",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate-alt",
    "price": 0.028337675024421999,
    "last_update": "20140902T002650",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate-baozi",
    "price": 0.028337675024421999,
    "last_update": "20140902T002650",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate-watchman",
    "price": 0.028337675024421999,
    "last_update": "20140902T002650",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "lotto-delegate",
    "price": 0.028500000000000001,
    "last_update": "20140902T121220",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "maqifrnswa",
    "price": 0.027799814673321079,
    "last_update": "20140902T124610",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "riverhead-del-server-1",
    "price": 0.028165004798542542,
    "last_update": "20140902T104130",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate1-galt",
    "price": 0.02751402781166138,
    "last_update": "20140902T170000",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "emski.bitdelegate",
    "price": 0.028500000000000001,
    "last_update": "20140902T121220",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate.xeroc",
    "price": 0.02814060542967288,
    "last_update": "20140902T093420",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "a.delegate.xeroc",
    "price": 0.02814060542967288,
    "last_update": "20140902T093420",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "b.delegate.xeroc",
    "price": 0.02814060542967288,
    "last_update": "20140902T093420",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate.taolje",
    "price": 0.027255425057747994,
    "last_update": "20140902T052140",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "cny.bts500",
    "price": 0.027981621533707406,
    "last_update": "20140902T175150",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "usd.bts500",
    "price": 0.027981621533707406,
    "last_update": "20140902T175150",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "dac.bts500",
    "price": 0.027981621533707406,
    "last_update": "20140902T175150",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate.bitsuperlab",
    "price": 0.028337675024421999,
    "last_update": "20140902T002650",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "my.watch.begins.nightswatch",
    "price": 0.027222890978299767,
    "last_update": "20140902T052320",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "hear.me.roar.lion",
    "price": 0.027222890978299767,
    "last_update": "20140902T052320",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate.liondani",
    "price": 0.027907000000000001,
    "last_update": "20140902T230400",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "www.minebitshares-com",
    "price": 0.027735302729609258,
    "last_update": "20140902T051850",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "www2.minebitshares-com",
    "price": 0.027222890978299767,
    "last_update": "20140902T052150",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate.svk31",
    "price": 0.0281,
    "last_update": "20140902T091710",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate2.svk31",
    "price": 0.0281,
    "last_update": "20140902T092630",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate3.svk31",
    "price": 0.0281,
    "last_update": "20140902T091710",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate.coolspeed",
    "price": 0.027932397481985127,
    "last_update": "20140902T091020",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "dac.coolspeed",
    "price": 0.027932397481985127,
    "last_update": "20140902T091020",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "now.dacwin",
    "price": 0.027969809847585271,
    "last_update": "20140902T094010",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "future.dacwin",
    "price": 0.027969809847585271,
    "last_update": "20140902T094010",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate1.maqifrnswa",
    "price": 0.027799814673321079,
    "last_update": "20140902T124610",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate1.john-galt",
    "price": 0.027933642351793121,
    "last_update": "20140902T171710",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "delegate.coinhoarder",
    "price": 0.027751000000000001,
    "last_update": "20140902T193010",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "sun.delegate.service",
    "price": 0.028029999999999999,
    "last_update": "20140902T122850",
    "asset_symbol": null,
    "median_price": null
  },{
    "delegate_name": "moon.delegate.service",
    "price": 0.028029999999999999,
    "last_update": "20140902T122840",
    "asset_symbol": null,
    "median_price": null
  }
]

My script had stopped working as well.  Was showing nothing but a bunch of
Fetch: USD
Fetch: BTC
Fetch: CNY

over and over again.
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: xeroc on September 04, 2014, 12:07:00 pm
sounds reasonable .. some APIs are limited to be called just a few times within 24h
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: Riverhead on September 04, 2014, 12:10:29 pm
I set mine to only run every 12 hours. Maybe that's not frequently enough for the market. The original plan was for every 24 hours.
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: liondani on September 04, 2014, 01:09:37 pm
I set mine to only run every 12 hours. Maybe that's not frequently enough for the market. The original plan was for every 24 hours.
it would be not frenquently enough if all delegates published the fees the exact same time every 12 hours!
So I think it's ok, knowing the publish time differs for many reasons between delegates...
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: bytemaster on September 04, 2014, 03:44:52 pm
I set mine to only run every 12 hours. Maybe that's not frequently enough for the market. The original plan was for every 24 hours.
it would be not frenquently enough if all delegates published the fees the exact same time every 12 hours!
So I think it's ok, knowing the publish time differs for many reasons between delegates...

I think early on it will be helpful for feeds to be published every 4 hours.  The market is still thin and 4 hours is a lot of time with the volatility of BTSX.
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: emski on September 04, 2014, 03:47:13 pm
I set mine to only run every 12 hours. Maybe that's not frequently enough for the market. The original plan was for every 24 hours.
it would be not frenquently enough if all delegates published the fees the exact same time every 12 hours!
So I think it's ok, knowing the publish time differs for many reasons between delegates...

I think early on it will be helpful for feeds to be published every 4 hours.  The market is still thin and 4 hours is a lot of time with the volatility of BTSX.

Shouldn't feed publish time be based on price change ?
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: xeroc on September 04, 2014, 04:06:04 pm
I think early on it will be helpful for feeds to be published every 4 hours.  The market is still thin and 4 hours is a lot of time with the volatility of BTSX.
just installed a 4h cronjob for the *.delegate.xeroc delegates ... (I hope you forgive me that the charity delegates do not set a price feed)
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: GaltReport on September 04, 2014, 04:08:16 pm
I set mine to only run every 12 hours. Maybe that's not frequently enough for the market. The original plan was for every 24 hours.
it would be not frenquently enough if all delegates published the fees the exact same time every 12 hours!
So I think it's ok, knowing the publish time differs for many reasons between delegates...

I think early on it will be helpful for feeds to be published every 4 hours.  The market is still thin and 4 hours is a lot of time with the volatility of BTSX.

Any plan to eliminate fees for publishing price feeds?
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: Riverhead on September 04, 2014, 04:09:39 pm
I think early on it will be helpful for feeds to be published every 4 hours.  The market is still thin and 4 hours is a lot of time with the volatility of BTSX.


I updated mine to every 4 hours and only if changed by more than 5% from previous update.
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: GaltReport on September 04, 2014, 04:41:18 pm
I think early on it will be helpful for feeds to be published every 4 hours.  The market is still thin and 4 hours is a lot of time with the volatility of BTSX.


I updated mine to every 4 hours and only if changed by more than 5% from previous update.

I updated mine to every 4 hours (and adjusted the fee  ;) )
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: bytemaster on September 04, 2014, 06:14:19 pm
I think early on it will be helpful for feeds to be published every 4 hours.  The market is still thin and 4 hours is a lot of time with the volatility of BTSX.


I updated mine to every 4 hours and only if changed by more than 5% from previous update.

I updated mine to every 4 hours (and adjusted the fee  ;) )

I think we need tighter tolerances to enforce the peg better.   Update if changed by more than 1%.  Right now shorts are selling at 3% above.
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: GaltReport on September 04, 2014, 06:17:11 pm
I think early on it will be helpful for feeds to be published every 4 hours.  The market is still thin and 4 hours is a lot of time with the volatility of BTSX.


I updated mine to every 4 hours and only if changed by more than 5% from previous update.

I updated mine to every 4 hours (and adjusted the fee  ;) )

I think we need tighter tolerances to enforce the peg better.   Update if changed by more than 1%.  Right now shorts are selling at 3% above.

I update it regardless every 4 hours.  Is that okay?
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: Riverhead on September 04, 2014, 06:24:11 pm
I think we need tighter tolerances to enforce the peg better.   Update if changed by more than 1%.  Right now shorts are selling at 3% above.


Done.
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: happyshares on September 04, 2014, 06:57:42 pm
Updated
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: xeroc on September 04, 2014, 07:10:29 pm
The auto script of alt needs some more sanity checks .. I just pushed a feed with 0USD .. *strange* :)
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: bytemaster on September 04, 2014, 07:12:27 pm
The auto script of alt needs some more sanity checks .. I just pushed a feed with 0USD .. *strange* :)

Working to add a RPC call to publish multiple feeds in a single transaction.
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: amencon on September 04, 2014, 11:57:17 pm
My feed should now also update when difference over 1%.
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: alt on September 05, 2014, 12:08:14 am
The auto script of alt needs some more sanity checks .. I just pushed a feed with 0USD .. *strange* :)
It's very strange, I didn't  find the bug.
and thanks for your bitUSD tip :)
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: alt on September 05, 2014, 02:13:29 am
I suggest  to update the automatic feed price scripts.
the main different is use the median price to replace the average price.
you can change the pararm "median_length" to adjust the price change latency.
because version 0.4.12 will use feed price to decide  the min cover price,
we need to protect the cover order from a serial margin call,
maybe cause of a suddenly price drop with a short period at the central trade site.
my English is poor, maybe not say it clearly   ???
updated:
1. update config file
2. use median price to replace average price, to protect system from  a suddenly drop price with a short period at the central trade site.
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: CalabiYau on September 05, 2014, 06:27:06 am
I suggest  to update the automatic feed price scripts.
the main different is use the median price to replace the average price.
you can change the pararm "median_length" to adjust the price change latency.
because version 0.4.12 will use feed price to decide  the min cover price,
we need to protect the cover order from a serial margin call,
maybe cause of a suddenly price drop with a short period at the central trade site.
my English is poor, maybe not say it clearly   ???
updated:
1. update config file
2. use median price to replace average price, to protect system from  a suddenly drop price with a short period at the central trade site.

Thank you alt, I will try the improved script.
"Neuron" sent you some compensation for your efforts.
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: cryptillionaire on September 05, 2014, 08:45:52 am
Can someone point me in the direction of how to set up feeds for currency values? I'm very interested in creating a delegate, and this is a gap in my knowledge at the moment.
Thanks :)
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: xeroc on September 05, 2014, 08:55:29 am
Can someone point me in the direction of how to set up feeds for currency values? I'm very interested in creating a delegate, and this is a gap in my knowledge at the moment.
Thanks :)
Theses are the scripts:
https://github.com/Bitsuperlab/operation_tools/tree/master/btsxfeed
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: alt on September 05, 2014, 02:28:20 pm
I suggest  to update the automatic feed price scripts.
the main different is use the median price to replace the average price.
you can change the pararm "median_length" to adjust the price change latency.
because version 0.4.12 will use feed price to decide  the min cover price,
we need to protect the cover order from a serial margin call,
maybe cause of a suddenly price drop with a short period at the central trade site.
my English is poor, maybe not say it clearly   ???
updated:
1. update config file
2. use median price to replace average price, to protect system from  a suddenly drop price with a short period at the central trade site.

Thank you alt, I will try the improved script.
"Neuron" sent you some compensation for your efforts.
yes, I have got your tips, thanks  :)
Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: happyshares on September 05, 2014, 04:45:55 pm
I think early on it will be helpful for feeds to be published every 4 hours.  The market is still thin and 4 hours is a lot of time with the volatility of BTSX.


I updated mine to every 4 hours and only if changed by more than 5% from previous update.

I updated mine to every 4 hours (and adjusted the fee  ;) )

I think we need tighter tolerances to enforce the peg better.   Update if changed by more than 1%.  Right now shorts are selling at 3% above.

This way i spent over 28 BTSX for updating the feed since midnight, using the python script. Quite expensive related to payrate.

Title: Re: Delegates Please Publish Prices for USD, BTC, and CNY
Post by: GaltReport on September 05, 2014, 05:40:05 pm
I managed to hack up the price feed python script that was floating around so that I can schedule it using the Linux cron job scheduler as well as implementing the update on price variance and hours since last update.  I will put it below for anyone that may find it useful.

I'm no great python programmer so please validate and/or fix any bugs discovered. 

I modified the config.json.  I added 2 new variables:

variance: percentage price variance
maxhours: maximum time between updates

The program will check the delegate's current published price for each asset and publish a new price if the current price exceeds the variance or if it has been longer than maxhours since the price has been published.

It has only been through basic testing so be advised.  I am not particularly confident in the math and date manipulations but it seems to work for my limited test cases.

I store the config.json file below in /home/ubuntu.  You can move it somewhere else but will need to change the location in the code. 

In the config.json file below you need to modify the following:

1. Set 1434 to the port number used in the httpd_endpoint entry in your .BitSharesX/config.json file
2. Set rpc-username-goes-here to the rpc_user setting in .BitSharesX/config.json file
3. Set rpc-password-goes-here to the rpc_password setting in .BitSharesX/config.json file
4. Set delegate-name-goes-here to your delegate name.
5. Set variance and maxhours to what you want

config.json

Code: [Select]
{
  "bts_rpc": {
    "url": "http://localhost:1434/rpc",
    "username": "rpc-username-goes-here",
    "password": "rpc-password-goes-here"
  },
  "asset_list": ["USD","BTC","CNY"],
  "delegate_list": ["delegate-name-goes-here"],
  "variance": 1,
  "maxhours": 12
}

price_feed.py

Code: [Select]
import requests
import json
import sys
from math import fabs

import datetime, threading, time
from pprint import pprint


headers = {'content-type': 'application/json',
   'User-Agent': 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:22.0) Gecko/20100101 Firefox/22.0'}

config_data = open('/home/ubuntu/config.json')
config = json.load(config_data)
config_data.close()

## -----------------------------------------------------------------------
## function about bts rpc
## -----------------------------------------------------------------------
auth = (config["bts_rpc"]["username"], config["bts_rpc"]["password"])
url = config["bts_rpc"]["url"]

asset_list = config["asset_list"]
init_asset_list = asset_list
delegate_list = config["delegate_list"]

def fetch_from_btc38():
  url="http://api.btc38.com/v1/ticker.php"
  while True:
     try:
       params = { 'c': 'btsx', 'mk_type': 'btc' }
       responce = requests.get(url=url, params=params, headers=headers)
       result = responce.json()
       price["BTC"].append(float(result["ticker"]["last"]))

       params = { 'c': 'btsx', 'mk_type': 'cny' }
       responce = requests.get(url=url, params=params, headers=headers)
       result = responce.json()
       price_cny = float(result["ticker"]["last"])
       price["CNY"].append(float(result["ticker"]["last"]))

       price["USD"].append(price_cny/rate_usd_cny)
       break
     except:
       e = sys.exc_info()[0]
       print "Error: fetch_from_btc38: retrying in 30 seconds", e
       time.sleep(30)
       continue

def fetch_from_bter():
  while True:
     try:
       url="http://data.bter.com/api/1/ticker/btsx_btc"
       responce = requests.get(url=url, headers=headers)
       result = responce.json()
       price["BTC"].append(float(result["last"]))

       url="http://data.bter.com/api/1/ticker/btsx_cny"
       responce = requests.get(url=url, headers=headers)
       result = responce.json()
       price_cny = float(result["last"])
       price["CNY"].append(float(result["last"]))
       price["USD"].append(price_cny/rate_usd_cny)
       break
     except:
       e = sys.exc_info()[0]
       print "Error: fetch_from_bter: retrying in 30 seconds", e
       time.sleep(30)
       continue

def get_rate_from_yahoo():
  global headers
  global rate_usd_cny, rate_xau_cny

  while True:
     try:
       url="http://download.finance.yahoo.com/d/quotes.csv"
       params = {'s':'USDCNY=X,XAUCNY=X','f':'l1','e':'.csv'}
       responce = requests.get(url=url, headers=headers,params=params)

       pos = posnext = 0
       posnext = responce.text.find("\n", pos)
       rate_usd_cny = float(responce.text[pos:posnext])
       print "Fetch: rate usd/cny", rate_usd_cny
       pos = posnext + 1
       posnext = responce.text.find("\n", pos)
       rate_xau_cny = float(responce.text[pos:posnext])
       print "Fetch: rate xau/cny", rate_xau_cny
       print
       break
     except:
       e = sys.exc_info()[0]
       print "Error: get_rate_from_yahoo:  try again after 30 seconds", e
       time.sleep(30)
       continue

def update_price(delegate,asset,price,feed):
      update_request = {
         "method": "wallet_publish_price_feed",
         "params": [delegate, price, asset],
         "jsonrpc": "2.0",
         "id": 1
      }

      present  = datetime.datetime.now()
      feed_price  = feed['price']
      symbol      = feed['asset_symbol']
      last_update = feed['last_update']

      lu_yr  = int(last_update[0:4])
      lu_mn  = int(last_update[4:6])
      lu_dy  = int(last_update[6:8])
      lu_hr  = int(last_update[9:11])
      lu_min = int(last_update[11:13])
      lu_sec = int(last_update[13:15])
      lu_d   = datetime.date(lu_yr,lu_mn,lu_dy)
      lu_t   = datetime.time(lu_hr,lu_min,lu_sec)
      lu_dt  = datetime.datetime.combine(lu_d,lu_t)

      # Calculate Price Variance
      if (price > feed_price):
            diff = 100 - (round((feed_price / price) * 100,0))
      else:
            diff = 100 - (round((price / feed_price) * 100,0))

      # Calculate Time Since Last Update
      tm_df  = present-lu_dt
      tm_mx  = datetime.timedelta(hours=config['maxhours'])

      print "   Delegate Price Feed: ",symbol,feed_price
      print "         Current Price: ",asset,price
      print " BC Last Update String: ",last_update
      print "      Last Update Date: ",lu_dt
      print "     Current Date/Time: ",present
      print "     Time Since Update: ",str(tm_df)
      print " Max Hrs Before Update: ",str(tm_mx)
      print "        Price Variance: ",int(diff)
      print "    Max Price Variance: ",config['variance']
      print "           Update Feed: ",

      while True:
           try:
               # Publish Asset Price If Maximum Price Variance or Maximum Time Are Exceeded
               if ((int(diff) >= config['variance']) or (tm_df > tm_mx)):
                  print "Yes",
                  responce = requests.post(url, data=json.dumps(update_request), headers=headers, auth=auth)
                  result = json.loads(vars(responce)["_content"])
                  print "-",delegate, price_average[asset], asset
               else:
                  print "No"
               print
               break

           except:
               e = sys.exc_info()[0]
               print "Warnning: Can't connect to rpc server or other error, (update_request) try again after 30 seconds", e
               time.sleep(30)

def update_feed(price, asset):
  for delegate in delegate_list:
     headers = {'content-type': 'application/json'}
     feed_request = {
         "method": "blockchain_get_feeds_from_delegate",
         "params": [delegate],
         "jsonrpc": "2.0",
         "id": 1
     }
     while True:
        try:
           # Get Delegate Price Feeds
           responce = requests.post(url, data=json.dumps(feed_request), headers=headers, auth=auth)
           result   = json.loads(vars(responce)['_content'])
           lresult  = result['result']
           for i in lresult:
              if (asset == i['asset_symbol']):
                 update_price(delegate,asset,price,i)
           break

        except:
           e = sys.exc_info()[0]
           print "Warnning: Can't connect to rpc server or other error, (get_feeds) try again after 30 seconds", e
   time.sleep(30)

def fetch_price():
  for asset in init_asset_list:
    price[asset] = []

  fetch_from_btc38()
  fetch_from_bter()

  for asset in asset_list:
    if len(price[asset]) == 0:
      print "Warning: can't get price of", asset
      continue
    price_average[asset] = sum(price[asset])/len(price[asset])
    if price_average_last[asset] != 0.0:
      change = 100.0 * (price_average[asset] - price_average_last[asset])/price_average_last[asset]
    else:
      change = 100.0

    update_feed(price_average[asset], asset)

print '=================', time.strftime("%Y%m%dT%H%M%S", time.localtime(time.time())), '=================='

rate_usd_cny = 0.0
rate_xau_cny = 0.0
get_rate_from_yahoo()

price = {}
price_average = {}
price_average_last = {}

for asset in init_asset_list:
  price[asset] = []
  price_average[asset] = 0.0
  price_average_last[asset] = 0.0

fetch_price()

print '=================', time.strftime("%Y%m%dT%H%M%S", time.localtime(time.time())), '=================='
print


Below crontab will run the script every 4 hours:

crontab

Code: [Select]
0 1,5,9,13,17,21 * * *  python /home/ubuntu/price_feed.py >> /home/ubuntu/price_feed.out

Log of actions will be stored in /home/ubuntu/price_feed.out

This may grow large after awhile so keep an eye on it and remove it when it get's too large or if you are familiar with it, you can use logrotate to maintain it

Edit: Edited to fix bug where it wouldn't work for multiple delegates.

Edit: Edited to change the retry Timer to 60 seconds instead of 1 second.  I ended up missing blocks because the program got into a tight 1 second retry loop and spiked my CPU.  I highly recommend changing this if you are using the original to something more than 1 second.  Otherwise, you have a chance of spiking your CPU and missing blocks if it continually retries every second.

The relevant lines of the code to change start with threading.Timer(1
Change the 1 to 30 or 60 maybe.

Edit: Edited to remove use of "threading.Timer" to avoid possible zombie process/threads that may use up memory/cpu.  Substituted while loop for retries.