From 7d4f04a143e8e0a4406e4ae15fd1214b198b10ab Mon Sep 17 00:00:00 2001 From: STdevK <120158492+STdevK@users.noreply.github.com> Date: Thu, 23 Nov 2023 23:12:45 +0800 Subject: [PATCH] Update ws-streams.md (#230) API URL for testnet-dex.binance.org is already decommissioned --- .../api-reference/dex-api/ws-streams.md | 40 ------------------- 1 file changed, 40 deletions(-) diff --git a/docs/beaconchain/develop/api-reference/dex-api/ws-streams.md b/docs/beaconchain/develop/api-reference/dex-api/ws-streams.md index d360526fad..40c2663c33 100644 --- a/docs/beaconchain/develop/api-reference/dex-api/ws-streams.md +++ b/docs/beaconchain/develop/api-reference/dex-api/ws-streams.md @@ -19,20 +19,6 @@ Return account updates. } ``` - -**Testnet Connection Example:** - -```javascript - // URL connection - const accountAndOrderAndTransfers = new WebSocket("wss://testnet-dex.binance.org/api/ws/tbnb1qtuf578qs9wfl0wh3vs0r5nszf80gvxd28hkrc"); - - // Or Subscribe method - const conn = new WebSocket("wss://testnet-dex.binance.org/api/ws"); - conn.onopen = function(evt) { - conn.send(JSON.stringify({ method: "subscribe", topic: "accounts", address: "tbnb1qtuf578qs9wfl0wh3vs0r5nszf80gvxd28hkrc" })); - } -``` - **Received Payload:** ```javascript @@ -84,19 +70,6 @@ Return transfer updates if address is involved (as sender or receiver) in a tran } ``` -**Testnet Connection Example:** - -```javascript - // URL connection - const accountAndOrderAndTransfers = new WebSocket("wss://testnet-dex.binance.org/api/ws/tbnb1c346qk3yfk89lzcacwzxsx402rv25gu6v40ghf"); - - // Or Subscribe method - const conn = new WebSocket("wss://testnet-dex.binance.org/api/ws"); - conn.onopen = function(evt) { - conn.send(JSON.stringify({ method: "subscribe", topic: "transfers", address: "tbnb1c346qk3yfk89lzcacwzxsx402rv25gu6v40ghf" })); - } -``` - **Received Payload:** ```javascript @@ -140,19 +113,6 @@ Streams the latest block height. } ``` -**Testnet Connection Example:** - -```javascript - // URL connection - const blockHeights = new WebSocket("wss://testnet-dex.binance.org/api/ws/$all@blockheight"); - - // Or Subscribe method - const conn = new WebSocket("wss://testnet-dex.binance.org/api/ws"); - conn.onopen = function(evt) { - conn.send(JSON.stringify({ method: "subscribe", topic: "blockheight", symbols: ["$all"] })); - } -``` - **Received Payload:** ```javascript