that is the question we have now
BTW: the one pegging as CNY is bitcny , but i don’t know more about bts 2.0
that is the question we have now
BTW: the one pegging as CNY is bitcny , but i don’t know more about bts 2.0
Yeah… I am so confused. If you look at most CNY/BTC exchanges it is priced as if CNY is ~6.7. But Google and Yahoo say CNY is 6.4.
and if someone use perfectmoney or okpay USD , we can buy USD from them.
Capital control of CNY is in place so that there is considerable friction to convert between CNY and USD in large quantity. The price ~6.7 refelcts the difficulty to arbitrage.
Retrieve tickers, trades and order books from the major exchanges and the Kaiko Bitcoin price index:
http://docs.kaiko.com/#exchanges
Kaiko.com presented themselves on Scaling Bitcoin conference in Hong Kong.
https://www.youtube.com/watch?v=H-ErmmDQRFs
start watching: 2:42:40
Kaiko seems to only have BTCchina and OKcoin, no huobi.
If y’all want me to make a new price feed for CNY, I’ll need concensus on what that means. Am I taking huobi BTC/CNY and dividing it by bitfinex BTC/USD using last price tickers? If so, can I default to the yahoo feed if the query fails? I think it would be more reliable to query the exchange APIs directly than to use something like Kaiko.
Bitcoin China or Huobi.
Bitfinex or Coinbase.
I’d be ok with a yahoo fallback.
I feel bad for “inflating” nu. But what is real - yahoo - which you can’t actually get. Or the cross trade - which you can get.
The btc/cny price on bter now is more close to bitfinex-btc/usd combined with yahoo cny/usd price. if you use huobi’s high btc/cny price to derive nbt/cny you might open an arbitrage channel. the result could be that one side of the nbt/cny peg is always 0.
I’m confused, isn’t that currently the case? Isn’t huobi the arbitrage channel?
Well btc/cny on bter drifts. Sometimes it is more close to bitfinex. But now btc price is moving so bter seems more close to huobi price. Well I guess it doesn’t hurt to try huobi price .
I think you’ll find that bter btc price is only close to bitfinex btc price when huobi is too. If you check out the bottom of the btc section on coinmarketcap you’ll see all the Chinese exchanges (excluded for no trading fees) and they all have the same price. Using huobi as a price feed is certainly a solution to this problem, but it opens up others. Also, work to implement.
Ok, so I plan on using OkCoin with BTCChina as a backup:
https://www.okcoin.cn/api/ticker.do
https://data.btcchina.com/data/ticker
I’ll be using the ‘last price’
I will also be suggesting that LPs start using a 0.25% deviation instead of 0.15%, as this basically promotes CNY volatility to crypto-status rather than fiat.
@desrever What sources is your price stream server using for CNY? (I suppose it’s operational already, sorry I’m not very up-to-date on NuBot dev)
and with yahoo price, which price will be used?
@desrever I think you should consider the solution we are applying here, but only for CNY. This is a super open-ended question of whether Nu follows black market price feeds or legitimate ones, but it really only applies to CNY. At least for now it does, who ever really know with fiat?
@huafei I don’t understand. The proposal is to not use feeds like yahoo anymore, and instead to calculate a blackmarket cny price indirectly using BTC/CNY and BTC/USD price feeds.
good , we are in the word of BTC:smiling_imp:
of course, if OkCoin experiences a flash dump or pump our CNY price would go crazy. This is actually a serious concern, and I’m sure we will see it in action as time goes on. However, there are ways to counteract it (have a maximum velocity for price changes) but I’m not going to be implementing them. NuBot may be able to do such advanced protections later.
that may fluctuate wildly and easily be subject to manipulation. why not taking an MA or EMA?
Cause that’s hard to implement. If you wanna help code it, I’d be happy to review and accept pushes on github.