-
Notifications
You must be signed in to change notification settings - Fork 6
Matcher Service
Vladimir edited this page Jul 23, 2019
·
5 revisions
This service contains methods for integrating Matcher (aka DEX) features into the app. DEX is a hosted by Waves decentralized exchange platform that can be used on the official page.
Please notice that the full list of Matcher methods is available at Matcher Service Swagger and Test Matcher Service Swagger
- createOrder()
/**
Place a new limit order (buy or sell)
*/
func createOrder(query: MatcherService.Query.CreateOrder) -> Observable<Bool>
- cancelOrder()
/**
Cancel previously submitted order if it's not already filled completely
*/
func cancelOrder(query: MatcherService.Query.CancelOrder) -> Observable<Bool>
- myOrders()
/**
Get OrderResponse History for a given Asset Pair and Public Key
*/
func myOrders(query: MatcherService.Query.GetMyOrders) -> Observable<[MatcherService.DTO.Order]>
- orderBook()
/**
Get the all open trading markets along with trading pairs meta data
*/
func orderBook() -> Observable<MatcherService.DTO.MarketResponse>
- orderBook()
/**
Get orderbook for a given Asset Pair
*/
func orderBook(amountAsset: String, priceAsset: String) -> Observable<MatcherService.DTO.OrderBook>
- matcherPublicKey()
/**
Get matcher public key
*/
func matcherPublicKey() -> Observable<String>
- balanceReserved()
/**
Get non-zero balance of open orders
*/
func balanceReserved(query: MatcherService.Query.ReservedBalances) -> Observable<[String: Int64]>