BitShares Forum

Main => Technical Support => Topic started by: Ggozzo on August 22, 2014, 02:09:19 pm

Title: How do we publish the price feed?
Post by: Ggozzo on August 22, 2014, 02:09:19 pm
I can't find anything explaining how to publish price feeds? Is there a how to somewhere?

I think I saw that we are not supposed to publish until Monday? I'd just like to know what we are supposed to do when the time comes.


Code: [Select]
blockchain_get_feeds_for_asset USD
Code: [Select]
wallet_publish_price_feed <delegate_account>  0.035645 USD
Title: Re: How do we publish the price feed?
Post by: Ggozzo on August 25, 2014, 12:05:41 am
Anyone?
Title: Re: How do we publish the price feed?
Post by: ripplexiaoshan on August 25, 2014, 12:10:26 am
using command in console
wallet_publish_price_feed
Title: Re: How do we publish the price feed?
Post by: Ggozzo on August 25, 2014, 02:14:56 am
I was looking for more details than that. Do I just post an arbitrary number I come up with?
Title: Re: How do we publish the price feed?
Post by: maqifrnswa on August 25, 2014, 02:43:40 am
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
Title: Re: How do we publish the price feed?
Post by: Gentso1 on August 25, 2014, 04:05:55 am
These feeds are just manually put in? There isn't a script that checks a reputable
currency exchange?
Title: Re: How do we publish the price feed?
Post by: Riverhead on August 25, 2014, 04:16:38 am
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).
Title: Re: How do we publish the price feed?
Post by: liondani on August 25, 2014, 04:30:21 am
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?
Title: Re: How do we publish the price feed?
Post by: Ggozzo on August 25, 2014, 05:17:57 am
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 (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?
Title: Re: How do we publish the price feed?
Post by: drekrob on August 25, 2014, 07:47:59 am
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()
Title: Re: How do we publish the price feed?
Post by: xeroc on August 25, 2014, 08:07:08 am
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 :)
Title: Re: How do we publish the price feed?
Post by: svk on August 25, 2014, 08:14:29 am
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.
Title: Re: How do we publish the price feed?
Post by: xeroc on August 25, 2014, 09:27:47 am
... 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)
Title: Re: How do we publish the price feed?
Post by: Riverhead on August 25, 2014, 12:38:20 pm
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.
Title: Re: How do we publish the price feed?
Post by: svk on August 25, 2014, 12:40:30 pm
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
Title: Re: How do we publish the price feed?
Post by: Riverhead on August 25, 2014, 12:42:13 pm
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 :).
Title: Re: How do we publish the price feed?
Post by: svk on August 25, 2014, 12:44:22 pm
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.
Title: Re: How do we publish the price feed?
Post by: xeroc on August 25, 2014, 12:45:04 pm
monday depends on the timezone :)
Title: Re: How do we publish the price feed?
Post by: 38PTSWarrior on August 25, 2014, 12:54:38 pm
I'm so excited!
Title: Re: How do we publish the price feed?
Post by: boombastic on August 25, 2014, 01:18:10 pm
I'm not comfortable to publish the feed just yet.  Waiting for the latest fixes to be released.


Sent from my iPhone using Tapatalk
Title: Re: How do we publish the price feed?
Post by: GaltReport on August 25, 2014, 01:27:43 pm
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 :)

I think  this is right and  would be  good if we just need a few feeds to get it started.
Title: Re: How do we publish the price feed?
Post by: bytemaster on August 25, 2014, 01:34:08 pm
I'm not comfortable to publish the feed just yet.  Waiting for the latest fixes to be released.


Sent from my iPhone using Tapatalk

The feed is the "delegate vote of confidence"...  at this point in time there is 100% delegate participation (Great work delegates!).   The market code has been widely distributed for almost 5 days now so the risk of a hard-fork is minimal.   

The known issues are a "crash on close connection" that occurs somewhat randomly.   I am in the office and our team is standing by in case anything goes wrong.  We might as well give it a go... whats the worst that can happen?     

Title: Re: How do we publish the price feed?
Post by: Riverhead on August 25, 2014, 01:38:33 pm
case anything goes wrong.  We might as well give it a go... whats the worst that can happen?   


Can we get this as a sticky announcement in the Bank & Exchange forum in huge flashing lights? This is kind of a big deal!!  +5% +5% +5%
Title: Re: How do we publish the price feed?
Post by: boombastic on August 25, 2014, 01:40:01 pm
I thought there will be at least one more release before the D-day in which version number will be displayed in the client so that users will clearly know where they are.


Sent from my iPhone using Tapatalk
Title: Re: How do we publish the price feed?
Post by: boombastic on August 25, 2014, 01:41:28 pm
I am standing by waiting for the moment when the gate finally opens.  Thrilled


Sent from my iPhone using Tapatalk
Title: Re: How do we publish the price feed?
Post by: GaltReport on August 25, 2014, 02:18:37 pm
I'm not comfortable to publish the feed just yet.  Waiting for the latest fixes to be released.


Sent from my iPhone using Tapatalk
...We might as well give it a go... whats the worst that can happen?   

I believe the correct answer is  Total protonic reversal
Title: Re: How do we publish the price feed?
Post by: Ggozzo on August 25, 2014, 02:51:35 pm
I just posted my feed!   8)


I counted 38 feeds published.  So, 13 more and trading begins?
Title: Re: How do we publish the price feed?
Post by: bytemaster on August 25, 2014, 03:12:34 pm
I just posted my feed!   8)


I counted 38 feeds published.  So, 13 more and trading begins?

13 more and shorts can start placing orders... (existing short orders are pre-fork).
Title: Re: How do we publish the price feed?
Post by: Gentso1 on August 25, 2014, 06:25:52 pm
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 (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?

I don't claim to understand all this stuff but the idea of a manually entered feed that is only updated once a day seems risky/scary. TBH why would we want to trust the delegates over say Forex with a script that checks and updates a feed ever 5 mins(the more the better to be honest). If we want to get the attention of large money I think the are going to want accurate pegging. When talking to others the term holographic peg seams to be a accurate description of what you describe. How can this be good?
Title: Re: How do we publish the price feed?
Post by: GaltReport on August 25, 2014, 06:53:40 pm
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 (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?

I don't claim to understand all this stuff but the idea of a manually entered feed that is only updated once a day seems risky/scary. TBH why would we want to trust the delegates over say Forex with a script that checks and updates a feed ever 5 mins(the more the better to be honest). If we want to get the attention of large money I think the are going to want accurate pegging. When talking to others the term holographic peg seams to be a accurate description of what you describe. How can this be good?

I think the idea is that we just need to get started and OUR marketplace will take it from there. 
Initially people will probably have an exchange or 2 open at the same time while trading on our system to verify prices...but eventually that should not be needed. 

Who knows, our market/exchange may be the main price setter before long....:)
Title: Re: How do we publish the price feed?
Post by: Gentso1 on August 25, 2014, 07:56:03 pm
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 (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?

I don't claim to understand all this stuff but the idea of a manually entered feed that is only updated once a day seems risky/scary. TBH why would we want to trust the delegates over say Forex with a script that checks and updates a feed ever 5 mins(the more the better to be honest). If we want to get the attention of large money I think the are going to want accurate pegging. When talking to others the term holographic peg seams to be a accurate description of what you describe. How can this be good?

I think the idea is that we just need to get started and OUR marketplace will take it from there. 
Initially people will probably have an exchange or 2 open at the same time while trading on our system to verify prices...but eventually that should not be needed. 

Who knows, our market/exchange may be the main price setter before long....:)

If what you say is true then that's great I just hoe the goal is to implement a REAL feed that is constantly checking and updating the price off a proven global market(forex). I agree though that as we grow hopefully we can be the market setter's 
Title: Re: How do we publish the price feed?
Post by: betax on August 25, 2014, 08:29:10 pm
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 (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?

I don't claim to understand all this stuff but the idea of a manually entered feed that is only updated once a day seems risky/scary. TBH why would we want to trust the delegates over say Forex with a script that checks and updates a feed ever 5 mins(the more the better to be honest). If we want to get the attention of large money I think the are going to want accurate pegging. When talking to others the term holographic peg seams to be a accurate description of what you describe. How can this be good?

I think the idea is that we just need to get started and OUR marketplace will take it from there. 
Initially people will probably have an exchange or 2 open at the same time while trading on our system to verify prices...but eventually that should not be needed. 

Who knows, our market/exchange may be the main price setter before long....:)

If what you say is true then that's great I just hoe the goal is to implement a REAL feed that is constantly checking and updating the price off a proven global market(forex). I agree though that as we grow hopefully we can be the market setter's

 +5%