100 BitUSD to First Person to Publish a working Price Feed Script for Graphene

Started by bytemaster, September 10, 2015, 06:54:35 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

tonyk

Quote from: bytemaster on December 12, 2015, 10:17:44 PM
FYI this bounty has been paid.

That's worth mentioning for sure ... not paid in timely manner but for sure better than

half ass excuses citing unseen yet but upcoming best practices.
Lack of arbitrage is the problem, isn't it. And this 'should' solves it.

bytemaster

For the latest updates checkout my blog: [url="http://bytemaster.bitshares.org"]http://bytemaster.bitshares.org[/url]
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

abit

BitShares committee member: abit
BitShares witness: in.abit

abit

Quote from: xeroc on December 07, 2015, 08:15:18 AM
Quote from: bytemaster on December 06, 2015, 11:05:41 PM
Bounty is all yours, where do you want the BitUSD sent?
you can send it all to "xeroc" .. I'll share a cut with @abit
Thanks  ;) my account is "abit"
BitShares committee member: abit
BitShares witness: in.abit

xeroc

Quote from: bytemaster on December 06, 2015, 11:05:41 PM
Bounty is all yours, where do you want the BitUSD sent?
you can send it all to "xeroc" .. I'll share a cut with @abit

Thom

That payout took awhile. Luck for you BM many of us here are a patient lot. Some of us grumble more than others but we're still here.

Xeroc certainly deserves the bounty, and perhaps some BROWNIES for the patience.
Injustice anywhere is a threat to justice everywhere - MLK |  Verbaltech2 Witness Reports: [url="https://bitsharestalk.org/index.php/topic,23902.0.html"]https://bitsharestalk.org/index.php/topic,23902.0.html[/url]

bytemaster

For the latest updates checkout my blog: [url="http://bytemaster.bitshares.org"]http://bytemaster.bitshares.org[/url]
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

xeroc

Quote from: bytemaster on September 10, 2015, 06:54:35 PM
We are looking for testers who will publish a BitUSD price feed in graphene.  You will need to be an elected witness to publish the feed.

You can either provide the script to an existing witness tester or become a tester yourself. 

Unfortunately there is little documentation on HOW to do this right now, hence the bounty.   Xeroc may be able to help.
Can I request the bounty now?

BunkerChainLabs-DataSecurityNode

Quote from: xeroc on October 09, 2015, 01:01:25 PM
I have updated the code:

+ reneabled bter
+ added another parameter "core_exchange_factor"
+ readded publishing rules which now allows to run it in a cron job on only publish every X seconds or on larger price changes (config parameter)
+ reenabled all other currencies that have been available in BTS1 already (INDICES still not complete)

TODO:
+ indices
+ bundle prices into a single transaction

+5%
+-+-+-+-+-+-+-+-+-+-+
[url="//www.peerplays.com"]www.Peerplays.com[/url] | Decentralized Gaming Built with Graphene - Now with BookiePro and Sweeps!
+-+-+-+-+-+-+-+-+-+-+

xeroc

I have updated the code:

+ reneabled bter
+ added another parameter "core_exchange_factor"
+ readded publishing rules which now allows to run it in a cron job on only publish every X seconds or on larger price changes (config parameter)
+ reenabled all other currencies that have been available in BTS1 already (INDICES still not complete)

TODO:
+ indices
+ bundle prices into a single transaction

xeroc

Quote from: bytemaster on October 08, 2015, 09:33:22 PM
You script should attempt to include all feed update operations in a single transaction to minimize load on the network.
Sounds like a good idea .. but for that I need to use the transaction_builder ..
I can do this but I may not be able to finish this up until after Shanghai

Beside that, could you please give you thoughts on this topic?
https://bitsharestalk.org/index.php/topic,18831.msg242310.html#msg242310

bytemaster

You script should attempt to include all feed update operations in a single transaction to minimize load on the network.
For the latest updates checkout my blog: [url="http://bytemaster.bitshares.org"]http://bytemaster.bitshares.org[/url]
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

xeroc

Quote from: bytemaster on October 08, 2015, 01:51:48 PM
Can we get a summary of what data sources are being used by this script?

mythreads["yahoo"]    = threading.Thread(target = fetch_from_yahoo)
mythreads["yunbi"]    = threading.Thread(target = fetch_from_yunbi)
mythreads["btc38"]    = threading.Thread(target = fetch_from_btc38)
#mythreads["bter"]     = threading.Thread(target = fetch_from_bter)
mythreads["poloniex"] = threading.Thread(target = fetch_from_poloniex)
mythreads["bittrex"]  = threading.Thread(target = fetch_from_bittrex)
mythreads["btcavg"]   = threading.Thread(target = fetch_bitcoinaverage)


Yahoo for traditional assets like GOLD, Silver.
Yunbi, btc38, bter (disabled atm), poloniex and bittrex for BTS/BTC pair
btcavg for USD/EUR to BTC pair ..


I am not sure how my script was even possible to submit prices for the wrong
paris.

  price_feed = {
                      "settlement_price": {
                        "quote": {
                          "asset_id": "1.3.0",
                          "amount": denominator
                        },
                        "base": {
                          "asset_id": assets[asset]["id"],
                          "amount": numerator
                        }
                      },
                      "core_exchange_rate": {
                        "quote": {
                          "asset_id": assets[asset]["id"],
                          "amount": numerator
                        },
                        "base": {
                          "asset_id": "1.3.0",
                          "amount": int(denominator * 1.05) # 5% extra
                        }
                      }
                    }

I load all publishing assets into ``assets`` and read the id JIT.
I'll investigate

bytemaster

Can we get a summary of what data sources are being used by this script?
For the latest updates checkout my blog: [url="http://bytemaster.bitshares.org"]http://bytemaster.bitshares.org[/url]
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Riverhead