这篇可能又会是一篇比较晦涩的文章了。可能也许写完了也就只有我自己能看懂了吧。。
在没有开发恒星做市机器人之前,一直都没有仔细关注过交易市场的价格单位。
由于交易市场之前都是 CNY
和具体的数字货币交易,所以交易所显示的价格都是买一个数字货币需要多少 CNY
,我只需要看具体的数值即可,并不影响我判断什么时候买入,什么时候卖出。
在开发第一版的机器人的时候,由于只是在单网关下做 XLM
和 CNY
这一个交易对,也就没有在意价格单位的问题。
但是从开发第二版机器人开始,由于加入了多网关多币种之间互相做市的功能,就不得不看看具体的单位到底代表什么意思了。
之前每次扫到类似 BTC/CNY
这样的单位的时候,总以为这是个分数,比如 60000 BTC/CNY
我会以为是每一个 CNY
可以买到 60000 个 BTC
,由于这个例子使用的是 CNY
,我们心里清楚目前 BTC
值多少 CNY
,因此才知道我刚才的阅读单位的方式是错误的。
目前我开发机器人过程中,会出现两个陌生币种之间的交易,这个时候,如果不能真正了解价格单位的意义,开发出来的机器人肯定会是有问题的。
所以到底类似 BTC/CNY
这样的交易对价格单位该如何正确解读呢?
在说正确方法之前,还要再插一句,就是 BTS
内盘的价格单位其实在很长一段时间都是给我有误导作用的。我们看一下在内盘抵押 BTS
的时候,出现的喂价和强平触发价的单位。
这里的单位就真的是分数式的解读啊!比如强平触发价 2.97143 BTS/bitCNY
,就是当 1 个 bitCNY
可以买到 2.97143 个 BTS
,也就是 1 个 BTS 值大约 0.3365 bitCNY
的时候爆仓。
下面就来说下到底该如何解读交易所的交易对的价格单位。
我以 base currency and counter currency
作为关键词,在 Google
上搜索了下,发现了这个解释 https://www.investopedia.com/terms/b/basecurrency.asp。
简单来说,这是外汇市场的一个约定俗成的表示方法,而 不是 一个分数形式的表示,只是通过先后顺序来表示关注程度。一个交易对的价格使用类似 base currency/counter currency
的格式来表示,意味着我更关注 base currency
的价值是升了还是跌了,也就是我买一个 base currency
要花多少 counter currency
或者 卖一个 base currency
能得到多少 counter currency
。就是这么简单的按照顺序阅读即可。
举个例子,比如说 BTC/CNY
这个交易对,之前 60000 BTC/CNY
应该解读为我购买 1 个 BTC
需要花费 60000 个 CNY
,如果购买一天后价格变为了 70000 BTC/CNY
,就意味着我关注的这个 base currency
即 BTC
升值了。
总结一下,其实 counter currency
就是你手里的筹码。base currency
是你想持有的。
这样一来,你关心哪个币的涨跌,就把哪个币设置为 base currency
就可以轻松的了解是否升值了。
以上就是完整的价格单位如何解读的内容了,下面是吐槽内容,选读:
除了恶心的价格单位外,再说一下
bid
和ask
,这个也是让我头疼的东西。
放狗搜索了下,发现了这篇文章,https://www.bitcoinmarketjournal.com/difference-bid-ask-buy-offer-cryptocurrency-trading/,发现老外也真是够了。
原来bid price
代表了最高的买价,ask price
代表了最低的卖价,而buy price
和sell price
只是代表最终的成交价。。。
WTF,为啥要多搞出来两个名词,对于中文来说都是买价卖家,无非加上最低和最高这样的形容词罢了。。。
我还要吐槽的是,恒星币的接口返回的orderbook
里用buy
和sell
来表示买单列表和卖单列表并没有不严谨吧,反而用的是asks
和bids
来表示卖单列表和买单列表。每次我都是要反应半天!只能说还是我的英语学的不好。
说到orderbook
,又想起了另外一个槽点,就是在恒星币的API
体系里清一色的都是offer
,而这里却是orderbook
,你咋不叫offerbook
呢?
吐槽完毕!
感谢你的阅读,我是中文区见证人之一,欢迎通过 SteemConnect 来给我投票,或者打开 https://steemit.com/~witnesses 页面,输入 ety001 进行投票。
中文区的见证人目前有:
支持一下他们(按字母顺序),一人可以有30票:
Thank you for reading. I'm a witness. I would really appreciate your witness vote! You can vote by SteemConnect. Or open https://steemit.com/~witnesses page, input ety001 to vote.
感谢干货 期待更多分享
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
你一说才觉得,标价单位确实有点奇怪。
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
是不太容易理解,当然,现在我也没理解透,会用就行了!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
@ety001, May the force be with you...愿码农原力和与你同在!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
@ety001, 伦家就觉得你技术贴写得不错嘛~~~
BTW, @cn-naughty.boy 淘气包你好好说话可以吗,就知道调皮,哼~~ (:3 」∠)
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
厉害了!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
学习了!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
看到你们看明白了,我感到很欣慰,终于能把文章写明白了😂
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
交易对的含义我看一次晕一次, 终于在你这里搞明白了。。
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
看到你们看明白了,我感到很欣慰,终于能把文章写明白了😂
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Do you have bot to transfer SBD automatically every minute ?
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Enn, I wrote a bot to buy votes automatically. The tool URL: https://ety001.github.io/coin-tools/steem-buy-votes-bot/
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
that's cool . Which programming language did you use ?
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
only javascript.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
I got basic core java knowledge . I am learning other programming languages now . How much time do you think will it take to learn javascript ?
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
It's easy to get starting with one day. If you want to learn a framework, like Vue.js, it may take about 1 to 3 months.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thank you for replying , i will vote for you as witness .
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thank you :)
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Congratulations! This post has been upvoted from the communal account, @minnowsupport, by ety001 from the Minnow Support Project. It's a witness project run by aggroed, ausbitbank, teamsteem, theprophet0, someguy123, neoxian, followbtcnews, and netuoso. The goal is to help Steemit grow by supporting Minnows. Please find us at the Peace, Abundance, and Liberty Network (PALnet) Discord Channel. It's a completely public and open space to all members of the Steemit community who voluntarily choose to be there.
If you would like to delegate to the Minnow Support Project you can do so by clicking on the following links: 50SP, 100SP, 250SP, 500SP, 1000SP, 5000SP.
Be sure to leave at least 50SP undelegated on your account.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
请问这个是在bitshares平台上交易吗?
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
你是指啥?机器人吗?机器人是恒星币的。
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit