Author Topic: 100 BitUSD to First Person to Publish a working Price Feed Script for Graphene  (Read 10858 times)

0 Members and 1 Guest are viewing this topic.

Offline tonyk

  • Hero Member
  • *****
  • Posts: 3308
    • View Profile
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.

Offline bytemaster

For the latest updates checkout my blog: http://bytemaster.bitshares.org
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.

Offline abit

  • Committee member
  • Hero Member
  • *
  • Posts: 4664
    • View Profile
    • Abit's Hive Blog
  • BitShares: abit
  • GitHub: abitmore
BitShares committee member: abit
BitShares witness: in.abit

Offline abit

  • Committee member
  • Hero Member
  • *
  • Posts: 4664
    • View Profile
    • Abit's Hive Blog
  • BitShares: abit
  • GitHub: abitmore
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

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
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

Offline 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: https://bitsharestalk.org/index.php/topic,23902.0.html

Offline bytemaster

Bounty is all yours, where do you want the BitUSD sent?
For the latest updates checkout my blog: http://bytemaster.bitshares.org
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.

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
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?

Offline BunkerChainLabs-DataSecurityNode

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%
+-+-+-+-+-+-+-+-+-+-+
www.Peerplays.com | Decentralized Gaming Built with Graphene - Now with BookiePro and Sweeps!
+-+-+-+-+-+-+-+-+-+-+

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: 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

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
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

Offline 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: http://bytemaster.bitshares.org
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.

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
Can we get a summary of what data sources are being used by this script?
Code: [Select]
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.
Code: [Select]
  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

Offline bytemaster

Can we get a summary of what data sources are being used by this script?
For the latest updates checkout my blog: http://bytemaster.bitshares.org
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.

Offline Riverhead