Stellar ask bid buy and sell 交易备注

in stellar •  6 years ago 

#前言

弄了一整天的Stellar买卖交易,头晕脑涨..最后在一篇博客的指导下,终于大概明白点了....

#先看图(网址: https://wallet.smartlands.io

122.png

#如上图

1,上图的order_book链接为(http://xxxxxxx/order_book?buying_asset_type=native&selling_asset_type=credit_alphanum4&selling_asset_code=CMB&selling_asset_issuer=GCTS32RGWRH6RJM62UVZ4UT5ZN5L6B2D3LPGO6Z2NM2EOGVQA7TA6SKO&limit=2)

2,Buy Offers ,就是order_book中的bid,Sell Offers 就是order_book 中的 ask.

3, Buy SLT (购买SLT,出售XLM: 意思是说使用XML兑换SLT)就行了
priceA :如果购买,则读取 Sell offers中的价格。
AmountB :表示想购买多少个SLT
TotalC :表示购买Amount个SLT需要多少个XML
关键的来了,点击创建ManageOfferOperation中的price参数为:1/price[A],amount=Total[C]

4,Sell SLT 时,price 为 price[A],amount=Amount[B]

回家吃饭先。饿死

参考网站:

https://wallet.smartlands.io/

https://www.stellar.org/laboratory/

https://blog.domyself.me/2018/03/19/stellar-dev-summarize.html

my blog :http://www.hihubs.com/article/347

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!