Author Topic: How do we publish the price feed?  (Read 6792 times)

0 Members and 1 Guest are viewing this topic.

Offline svk

AFAIK .. in the long run .. price feeds will be unecessary .. because then the price feed will be build from the 24h moving average ..

Our spaceship to moon just needs an initial ignition :)
Think you're right yea. Also, publishing a price feed requires the standard transaction fee of 0.5 BTSX, so I wouldn't setup a script to update it all too often, although I suppose it's a good idea to stay updated in the beginning.


BM recommended about once a day until the market was boot strapped and then the feeds wouldn't be required.


I too am still a bit fuzzy on the mechanics but I think it can be just typed into the CLI daily. Since it's a temporary process to bootstrap the market I'm OK doing it by hand once a day. I've had harder jobs :D .

Sounds good to me. I already published mine this morning, but it seems like I'm the only one so far. You can check it using:

Code: [Select]
blockchain_get_feeds_for_asset USD


Were we given the all clear to publish a feed? Last I heard we were waiting for everyone to get upgraded or something. I was out all day yesterday for my wife's birthday so I feel a bit out of touch :).

No, no all clear so far, but I was under the impression we were to start on monday? :) I just got back from holiday myself so may not be up to date on everything, if we were to not publish until BM gave us the green light then my apologies.
Worker: dev.bitsharesblocks

Offline Riverhead

AFAIK .. in the long run .. price feeds will be unecessary .. because then the price feed will be build from the 24h moving average ..

Our spaceship to moon just needs an initial ignition :)
Think you're right yea. Also, publishing a price feed requires the standard transaction fee of 0.5 BTSX, so I wouldn't setup a script to update it all too often, although I suppose it's a good idea to stay updated in the beginning.


BM recommended about once a day until the market was boot strapped and then the feeds wouldn't be required.


I too am still a bit fuzzy on the mechanics but I think it can be just typed into the CLI daily. Since it's a temporary process to bootstrap the market I'm OK doing it by hand once a day. I've had harder jobs :D .

Sounds good to me. I already published mine this morning, but it seems like I'm the only one so far. You can check it using:

Code: [Select]
blockchain_get_feeds_for_asset USD


Were we given the all clear to publish a feed? Last I heard we were waiting for everyone to get upgraded or something. I was out all day yesterday for my wife's birthday so I feel a bit out of touch :).

Offline svk

AFAIK .. in the long run .. price feeds will be unecessary .. because then the price feed will be build from the 24h moving average ..

Our spaceship to moon just needs an initial ignition :)
Think you're right yea. Also, publishing a price feed requires the standard transaction fee of 0.5 BTSX, so I wouldn't setup a script to update it all too often, although I suppose it's a good idea to stay updated in the beginning.


BM recommended about once a day until the market was boot strapped and then the feeds wouldn't be required.


I too am still a bit fuzzy on the mechanics but I think it can be just typed into the CLI daily. Since it's a temporary process to bootstrap the market I'm OK doing it by hand once a day. I've had harder jobs :D.

Sounds good to me. I already published mine this morning, but it seems like I'm the only one so far. You can check it using:

Code: [Select]
blockchain_get_feeds_for_asset USD
Worker: dev.bitsharesblocks

Offline Riverhead

AFAIK .. in the long run .. price feeds will be unecessary .. because then the price feed will be build from the 24h moving average ..

Our spaceship to moon just needs an initial ignition :)
Think you're right yea. Also, publishing a price feed requires the standard transaction fee of 0.5 BTSX, so I wouldn't setup a script to update it all too often, although I suppose it's a good idea to stay updated in the beginning.


BM recommended about once a day until the market was boot strapped and then the feeds wouldn't be required.


I too am still a bit fuzzy on the mechanics but I think it can be just typed into the CLI daily. Since it's a temporary process to bootstrap the market I'm OK doing it by hand once a day. I've had harder jobs :D.

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
... at least for the first 24-hours :)

however .... conensus is reached over ALL 101 delegates .. I will not stay awake 24 hours just to watch this ;-)   (but I thought about it)

Offline svk

AFAIK .. in the long run .. price feeds will be unecessary .. because then the price feed will be build from the 24h moving average ..

Our spaceship to moon just needs an initial ignition :)
Think you're right yea. Also, publishing a price feed requires the standard transaction fee of 0.5 BTSX, so I wouldn't setup a script to update it all too often, although I suppose it's a good idea to stay updated in the beginning.
Worker: dev.bitsharesblocks

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
AFAIK .. in the long run .. price feeds will be unecessary .. because then the price feed will be build from the 24h moving average ..

Our spaceship to moon just needs an initial ignition :)

drekrob

  • Guest
I think you would implement this by using a scripting language like python or nodejs that simply calls the api with a http get call every x minutes (using cron) and updates your client via rpc. With nodejs this would be something like this (untested coffescript):

Code: [Select]
rpc = require("node-json-rpc")
CronJob = require('cron').CronJob
http = require("http")
options = #place bitshares rpc settings here
  port: 5080
  host: "127.0.0.1"

client = new rpc.Client(options)

c = new CronJob "'00 30 * * * *'", -> #run this hourly
  http.get "http://coinmarketcap-nexuist.rhcloud.com/api/btsx/price", (price) ->
    client.call
      method: "wallet_publish_price_feed"
      params: [
        "yourdelegatename"
        price.usd
      ]
      id: 0
    , (err, res) ->
      throw err if err
c.start()
« Last Edit: August 25, 2014, 08:43:52 am by drekrob »

Ggozzo

  • Guest
I was looking for more details than that. Do I just post an arbitrary number I come up with?

the point of a feed is to give the market a starting point from which people can buy/sell. You can use:
http://coinmarketcap.com/currencies/bitshares-x/#markets
as a guide. Someone has already posted a python script that checks and posts a new feed if the value changed by 5% since the last update.

as of this second, a valid feed could be
wallet_publish_price_feed <delegate_account>  0.035645 USD

Thanks,

Still confused about the validity of the feeds then. The price is extremely volatile right now and has moved near 100% in one day. A manually entered price feed could be obsolete within minutes of posting.

I found this from coinmarketcap.com :http://coinmarketcap-nexuist.rhcloud.com/api/btsx/price but I would have no idea how to implement it other than manually typing it into the console.

How would I implement the script? Is it something we can download and type in the console? Or does it have to be built in?

And is it made by I3 or Bitshares? In other words, is it safe?

Offline liondani

  • Hero Member
  • *****
  • Posts: 3737
  • Inch by inch, play by play
    • View Profile
    • My detailed info
  • BitShares: liondani
  • GitHub: liondani
when we put a feed can we update it whenever we want manualy?

What if for a feed exist big difference in value from delegates?
« Last Edit: August 25, 2014, 04:32:59 am by liondani »

Offline Riverhead

These feeds are just manually put in? There isn't a script that checks a reputable
currency exchange?


It is the job of the delegates to find a reputable source. The idea here is the market doesn't "trust" a source. It trusts delegates. Once 51 delegates have submitted a a value the market can start (if it has sufficient depth).

Offline Gentso1

  • Hero Member
  • *****
  • Posts: 931
    • View Profile
  • BitShares: gentso
These feeds are just manually put in? There isn't a script that checks a reputable
currency exchange?

Offline maqifrnswa

  • Hero Member
  • *****
  • Posts: 661
    • View Profile
I was looking for more details than that. Do I just post an arbitrary number I come up with?

the point of a feed is to give the market a starting point from which people can buy/sell. You can use:
http://coinmarketcap.com/currencies/bitshares-x/#markets
as a guide. Someone has already posted a python script that checks and posts a new feed if the value changed by 5% since the last update.

as of this second, a valid feed could be
wallet_publish_price_feed <delegate_account>  0.035645 USD
maintains an Ubuntu PPA: https://launchpad.net/~showard314/+archive/ubuntu/bitshares [15% delegate] wallet_account_set_approval maqifrnswa true [50% delegate] wallet_account_set_approval delegate1.maqifrnswa true

Ggozzo

  • Guest
I was looking for more details than that. Do I just post an arbitrary number I come up with?

Offline ripplexiaoshan

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 2300
    • View Profile
  • BitShares: jademont
using command in console
wallet_publish_price_feed
BTS committee member:jademont