Skip to content

Version 2.1.3

Compare
Choose a tag to compare
@vsuharnikov vsuharnikov released this 01 Jun 08:21
· 478 commits to master since this release
a107f40

In this release

We were focused on the WebSocket implementation and small HTTP API improvements.

Migration

No needed.

New

Experimental support of WebSockets

WebSockets API is unstable and breaking changes can be made. So it has an internal status right now.
More information and documentation will be provided in the future releases after stabilization.

Basic server checks in waves-dex-cli

waves-dex-cli now can run basic checks on the Server:

  • It has an expected version;
  • An order could be placed, matched or canceled;
  • A user can connect to the WebSocket API.

It is useful during updates. See waves-dex-cli check-server for more information;

HTTP API endpoints changes

Added two endpoints to retrieve an order information:

  • GET /matcher/orders/{address}/{orderId} - by an API-key;
  • GET /matcher/orders/{publicKey}/{orderId} - by a signature.

Added the closedOnly query parameter to order history endpoints:

  • GET /orderbook/[amountAsset]/[priceAsset]/publicKey/[publicKey]
  • GET /orderbook/[publicKey]
  • GET /orders/[address]

This information is similar to an order history.

Example response
{
  "id": "7VEr4T9icqopHWLawGAZ7AQiJbjAcnzXn65ekYvbpwnN",
  "type": "buy",
  "orderType": "limit",
  "amount": 7757865201004347,
  "fee": 6345852410462127,
  "price": 489,
  "timestamp": 1578074613225,
  "filled": 0,
  "filledFee": 0,
  "feeAsset": null,
  "status": "Accepted",
  "assetPair": {
    "amountAsset": "6rRegyHpdvZBENW4mowKYtKMDs2xpxmMbyNMRMZaZQ7",
    "priceAsset": "8pFqaP5CtPB4kP87gpu2T7vB4LxdfoH9e5mSPQduhCc"
  },
  "avgWeighedPrice": 489
}

Other changes

  • Swagger UI: added a deep linking on page. Now you can share an URL with a concrete API method.

Bugs:

  • JRE 11 Support: fixed a crash on a Swagger UI page.

Optimizations:

  • Speed up of order book's operations from 6x to 367x in some cases;
  • The Server does less checks on balance changes came from Waves NODE.

SHA256 Checksums

fb60665b84698d28ede110f38cc2c6701bad3bb5b89b721115d92d27ae94372a waves-dex-2.1.3.zip
ffb03ce6be625c5c3f533501a09e77517d3ec5b555bc08c80fac54ebd685e8e4 waves-dex_2.1.3_all.deb
51a4ac8c61b681d807addf91c304ffb3097efd78f0133c4fc4422e43cae043d8 waves-dex-extension-2.1.3.zip
bda91ef9d9c1e2f50c9e693f8c6ef49ee4ad00860c80eb5b599aecf7db71220f waves-dex-extension_2.1.3_all.deb
7ef6d89e1bbbc89c3ee3f5f005837906886bd175a5070b687ee55a0e6ff4a7ed waves-dex-extension-testnet_2.1.3_all.deb
a263e155f94845bbf46ce5f9c83a660b9f8a43da9dc9d788ed7f77fb5a7e8607 waves-dex-extension-stagenet_2.1.3_all.deb