You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
update README.md and add the way to set up websocket proxy. (#571)
* update READMD.md and add introduction about proxy; replace options with
eoptions, just change the package name
add the way to manually set up the websocket proxy, current websocket
proxy got from environment variable
* fix typos
* change eoptions as options;resolved review
* correct base url of options' websocket
* revert v2/client.go
* change eoptions as options in v2/client.go
* revert v2/client.go
Copy file name to clipboardexpand all lines: README.md
+25-2
Original file line number
Diff line number
Diff line change
@@ -21,8 +21,12 @@ Name | Description | Status
21
21
[web-socket-streams.md](https://github.com/binance/binance-spot-api-docs/blob/master/web-socket-streams.md) | Details on available streams and payloads | <inputtype="checkbox"checked> Implemented
22
22
[user-data-stream.md](https://github.com/binance/binance-spot-api-docs/blob/master/user-data-stream.md) | Details on the dedicated account stream | <inputtype="checkbox"checked> Implemented
23
23
[margin-api.md](https://binance-docs.github.io/apidocs/spot/en) | Details on the Margin API (/sapi) | <inputtype="checkbox"checked> Implemented
24
-
[futures-api.md](https://binance-docs.github.io/apidocs/futures/en/#general-info) | Details on the Futures API (/fapi) | <inputtype="checkbox"checked> Partially Implemented
25
-
[delivery-api.md](https://binance-docs.github.io/apidocs/delivery/en/#general-info) | Details on the Coin-M Futures API (/dapi) | <inputtype="checkbox"checked> Partially Implemented
24
+
[futures-api.md](https://binance-docs.github.io/apidocs/futures/en/#general-info) | Details on the Futures API (/fapi) | <inputtype="checkbox"checked> Implemented
25
+
[delivery-api.md](https://binance-docs.github.io/apidocs/delivery/en/#general-info) | Details on the Coin-M Futures API (/dapi) | <inputtype="checkbox"checked> Implemented
26
+
[options-api.md](https://binance-docs.github.io/apidocs/voptions/en/#general-info) | Detains on the Options API(/eapi) | <inputtype="checkbox"checked> Implemented
27
+
28
+
29
+
If you find an unimplemented interface, please submit an issue.
26
30
27
31
### Installation
28
32
@@ -40,7 +44,12 @@ go get github.com/adshao/go-binance/v1
40
44
41
45
```golang
42
46
import (
47
+
// for spot and other interfaces contained in https://binance-docs.github.io/apidocs/spot/en/#change-log
@@ -221,6 +238,12 @@ You don't need Client in websocket API. Just call binance.WsXxxServe(args, handl
221
238
222
239
> For delivery API you can use `delivery.WsXxxServe(args, handler, errHandler)`.
223
240
241
+
If you want to use a proxy, you can set `HTTPS_PROXY` or `HTTP_PROXY` in the environment variable, or you can call `SetWsProxyUrl` in the target packages within your code. Then you can call other websocket functions. For example:
0 commit comments