0 Members and 1 Guest are viewing this topic.
that commit mainly changes the warning/skip levels ets...seems to be a bigger issue in play here..Does it work for you?
I'm not sure why it's not been merged into the master branch yet..
Hey Customminer,Trying to use: https://github.com/xeroc/bitshares-pricefeed/blob/master/bitshares_pricefeed/examples/hertz.yaml until I sort out my own pricefeed solution and I get the following error:AssertionError: You cannot provide a 'price' this wayAre there any adjustments needed to the pricefeed code?
Quote from: Customminer on April 08, 2018, 01:18:41 am@zapata42 just to confirm, your BTS account is 'zapata42', yeah?Yes, it's my account.Do you have any news from the witness?
@zapata42 just to confirm, your BTS account is 'zapata42', yeah?
I'll contact you or any witnesses in private so we can proceed with more testing.
Code: [Select]rate_cny["HERTZ"] = compute_hertz() * rate_cny["USD"]In the above snippet of code, does Code: [Select]rate_cny["USD"] result in the bitCNY:bitUSD rate, or the BTS:bitUSD rate?If it's not BTS:bitUSD then it will not line up with the other hertz price feeds.
rate_cny["HERTZ"] = compute_hertz() * rate_cny["USD"]
rate_cny["USD"]
self.price_queue[asset].append(bts_price_in_cny / self.bts_price.rate_cny[asset])
BTS/CNY / (compute_HERTZ() * CNY/USD)
Quote from: zapata42 on March 26, 2018, 09:23:09 pmI'm not a witness so I can't test the publication. I'll try to setup it on testnet when I will have some time (probably next week). Let me know if a witness using alt's script is avialable for testing.I've got the hertz name reserved on testnet, I can provide you price feed publish rights on testnet if you're interested.In the mean time, there were multiple witnesses on bitsharestalk who stated that they would consider supporting hertz once integrated into btsprice - I'll reach out to them in the next couple days.
I'm not a witness so I can't test the publication. I'll try to setup it on testnet when I will have some time (probably next week). Let me know if a witness using alt's script is avialable for testing.
An attempt to help you: https://github.com/pch957/btsprice/pull/6
alt's btsprice use CNY/BTS rate as a base for all the prices, so I'm using it for Hertz/Hero.
I have also started to gather all changes from the community on my repo: https://github.com/Zapata/btsprice/commits/master (WIP)
Really need to create Hertz price feeds for btsprice https://github.com/pch957/btsprice/issues/4Would anyone be interested in working on this in return for some bitUSD? $750 for Hertz implementation sound tempting? It needs to be pegged to BTS:USD settlement rate (not BTS:CNY).Use the time() reference instead of pendulum & try to get the BTS:USD rate from existing btsprice functionality (or implement following the existing coding style).Hertz references: https://github.com/BTS-CM/scripts/blob/master/hertz-feed.pyhttps://github.com/grctest/bts_tools/blob/master/bts_tools/feeds.py#L275https://github.com/grctest/bts_tools/blob/master/bts_tools/feeds.py#L439
I do actually use BTSPrice for feeding most of the "currency" markets and gold silver. It's a great tool and very all-entailing featurerich and well coded by @alt , however as announced, he stopped maintaining it with his exit of BTS. Hence my addition on my GH.
But i do also run separate scripts for more custom needed feeds, like HERO , Bit20, and now, Hertz. These are (imho) less about continuous realtime market monitoring (which btsprice-tool for currency markets perfectly serves) and more about the one-off-calculate-ad-hoc algoritmic based feed pushes. Those feeds (in my case) are all based of combining the algorithm calculation with publishing the feed by utilising the feed_publish command from pybitshares. Link with "individual" scripts https://github.com/roelandp/bts-misc-pricefeeds
i did make some changes to btsprice by alt to keep it running, however no intergration with hertz yet.
giving its nature of being an algorithmic mpa not so much based on “old skool” market monitoring / price moves i’m not sure if it fits the scope of btsprice.
people running btsprice already have python, so its a small stepto py-bitshares imho.
Really need to create Hertz price feeds for btsprice https://github.com/pch957/btsprice/issues/4Would anyone be interested in working on this in return for some bitUSD? $500 for Hertz implementation and $250 for Hero implementation sound tempting? It needs to be pegged to BTS:USD settlement rate (not BTS:CNY).Hertz reference: https://github.com/BTS-CM/scripts/blob/master/hertz-feed.pyHero reference: https://github.com/hero-global/scripts/blob/master/hero-feed.py
But to think about, if a blockchain like STEEM or GOLOS paid out rewards with such a token. risk probability could be considered of printing % of anual inflation in said token? perhaps some restriction of settlement maybe. Less often would a arbitrary limit of the total allowable debt be breached, and perhaps higher limit set.?
Also understand the total allowable debt as a function of the powered up token. With a projection of this value possible examining the the component of it in a powering down contract In Steem and Golos examples where ratio powered up : powered down, tends to exceed 1, makes this projection better.
Think about the Market BTS Market Hertz : BTS.When BTS behaves volatile either swinging up or down in real terms and from average. Understand someone may prefer sell BTS token for BTS Market hertz to realize profit on upswing but remain invested in BTS, or to mitigate losses on down swing, but still remain invested. These are new options, and are naturally met with converse options That apply to this new investor in BTS Market Hertz.
Think of BTS Market Hertz as part of an investment portfolio and being able to trade the BTS market while maintaining this investment trivially.
Other considerations:BTS Market Hertz as the preferred collateral rather than BTS in a system such as bitshares.
The volatility of a market can be measured i.e VIX.
new type of price-feed: subject the number of days in the average to democratic process, variable which witnesses decide dynamically.
I would like a price feed for a BTS HERTZ but that oscillates by tracking a simple 30, 14 day moving average. Still this appears difficult.
BTS HERTZ that works by sine wave, is adding a predictable volatility to existing underling volatile price. This seems pointless. But does create an asset that tends to the state of being fully backed by 1x collateral. even large amplitude it comes back predictably to the 1:1 state.
how many days you add to the average? More days you get less volatile asset but one that doesn't intersect with the price as often - which is the state of coming into being fully backed ( which is important to me ).7, 14, 31 all seem very attractive to me.the problem unlike a mathematical oscillation. how do you build this curve that tracks and average of the past and updates frequently.
I think we can use published price-feeds on blockchain, going back 7, 14 , 31 days to construct the average which will be weighted as well.
./min_hertz.hs referenceBlock genesisBlock blocksInPeriod amplitude referenceAssetValueexample: ./min_hertz.hs 50 1 100 0.5 25output: 25.784882
I'm not sure I understand much of the above correctly, but if traders could make a 1% profit every ~1-4 hours by shorting the asset at the peak, and then buying again at the low, then holding until the peak.A repetitive bot trading the 4 hour profit cycle (6 x 1% profit opportunities per 24 hours), would make 1.01x their initial investment.Using a bot to trade each of these cycles every day for a month would create a (Initial-Investment * 1.01^(6*31) equals a 600% increase in capital, just from playing the tick-tock game of 1%This asset needs to track the value of something that the mainstream will want to hold.There will be lots of shorters wanting to earn the 1% profit 6 times a day.BitShares-customers who want to buy CNY (?) at volume in a liquid market will not mind paying a 1% "fee" depending on where they are on the HERTZ cycle.They won't even notice itThere would be lots of liquidity, shorters are guaranteed profits if there are buyers of the token. High liquidity looks attractive to potential customers, and gets BitShares on the "front page" of crypto-news, because traders will see volume rankings and BitShares will be up thereIs this the kind of thing you're talking about?
formula: 1.05 ** ((date.today() - date(1913, 12, 23)).days / 365.2425) / {quoteSettlement_price}
formula: quoteSettlement_price + read_CSV_For_Wave_Value(BlockNumber)
import mathimport datequoteSettlement_price = XDRTime_In_Period = one month durationamplitude = 0.5x_value = (remainder of ((date.today() - date(Asset_Genesis_Date_Timestamp))/Time_In_Period) divided by 1.00) // to return 0.xxfeed_price = quoteSettlement_price + (((quoteSettlement_price * amplitude)*(sin((x_value * Time_In_Period)) * ((2*math.pi)/Time_In_Period) ))))
Quote from: Customminer on May 17, 2017, 07:27:47 pmBackingAssetValue = [USD | XDR] //Still need to decide on basing it against the USD or the XDR/SDR.....gold? Love the idea. I understand the aim is a stable reliable price(?) but using an IMF product just seems icky. Maybe the USD isn't any better.
BackingAssetValue = [USD | XDR] //Still need to decide on basing it against the USD or the XDR/SDR.