Skip to content

Commit 26c5b2f

Browse files
committed
change eoptions as options;resolved review
1 parent 816fb6e commit 26c5b2f

34 files changed

+44
-44
lines changed

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ Name | Description | Status
2323
[margin-api.md](https://binance-docs.github.io/apidocs/spot/en) | Details on the Margin API (/sapi) | <input type="checkbox" checked> Implemented
2424
[futures-api.md](https://binance-docs.github.io/apidocs/futures/en/#general-info) | Details on the Futures API (/fapi) | <input type="checkbox" checked> Implemented
2525
[delivery-api.md](https://binance-docs.github.io/apidocs/delivery/en/#general-info) | Details on the Coin-M Futures API (/dapi) | <input type="checkbox" checked> Implemented
26-
[eoptions-api.md](https://binance-docs.github.io/apidocs/voptions/en/#general-info) | Detains on the European Options API(/eapi) | <input type="checkbox" checked> Implemented
26+
[options-api.md](https://binance-docs.github.io/apidocs/voptions/en/#general-info) | Detains on the Options API(/eapi) | <input type="checkbox" checked> Implemented
2727

2828

29-
Found an unimplemented interface, please submit a issue.
29+
If you find an unimplemented interface, please submit an issue.
3030

3131
### Installation
3232

@@ -49,7 +49,7 @@ import (
4949

5050
"github.com/adshao/go-binance/v2/futures" // optional package
5151
"github.com/adshao/go-binance/v2/delivery" // optional package
52-
"github.com/adshao/go-binance/v2/eoptions" // optional package
52+
"github.com/adshao/go-binance/v2/options" // optional package
5353
)
5454
```
5555

@@ -84,7 +84,7 @@ If you have any questions, please refer to the specific version of the code for
8484
##### Proxy Client
8585

8686
```
87-
proxyUrl := "http://127.0.0.1:7890" // for example, please replace as your exact proxy url.
87+
proxyUrl := "http://127.0.0.1:7890" // Please replace it with your exact proxy URL.
8888
client := binance.NewProxiedClient(apiKey, apiSecret, proxyUrl)
8989
```
9090

@@ -236,9 +236,9 @@ fmt.Println(res)
236236

237237
You don't need Client in websocket API. Just call binance.WsXxxServe(args, handler, errHandler).
238238

239-
> For delivery API you can use `delivery.WsXxxServe(args, handler, errHandler)`.
239+
> For delivery API you can use `delivery.WsXxxServe(args, handler, errHandler)`.
240240
241-
If you wanna use proxy, you can set `HTTPS_PROXY` or `HTTP_PROXY` in environment variable or you can call `SetWsProxyUrl` of target packages in code. Then you can call other websocket function. For example below:
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:
242242
```golang
243243
binance.SetWsProxyUrl("http://127.0.0.1:7890")
244244
binance.WsDepthServe("LTCBTC", wsDepthHandler, errHandler)

v2/client.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919

2020
"github.com/adshao/go-binance/v2/common"
2121
"github.com/adshao/go-binance/v2/delivery"
22-
"github.com/adshao/go-binance/v2/eoptions"
22+
"github.com/adshao/go-binance/v2/options"
2323
"github.com/adshao/go-binance/v2/futures"
2424
)
2525

@@ -362,9 +362,9 @@ func NewDeliveryClient(apiKey, secretKey string) *delivery.Client {
362362
return delivery.NewClient(apiKey, secretKey)
363363
}
364364

365-
// NewOptionsClient initialize client for eoptions API
366-
func NewOptionsClient(apiKey, secretKey string) *eoptions.Client {
367-
return eoptions.NewClient(apiKey, secretKey)
365+
// NewOptionsClient initialize client for options API
366+
func NewOptionsClient(apiKey, secretKey string) *options.Client {
367+
return options.NewClient(apiKey, secretKey)
368368
}
369369

370370
type doFunc func(req *http.Request) (*http.Response, error)

v2/eoptions/account_service.go v2/options/account_service.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package eoptions
1+
package options
22

33
import (
44
"context"

v2/eoptions/account_service_test.go v2/options/account_service_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package eoptions
1+
package options
22

33
import (
44
"testing"

v2/eoptions/client.go v2/options/client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package eoptions
1+
package options
22

33
import (
44
"bytes"

v2/eoptions/client_test.go v2/options/client_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package eoptions
1+
package options
22

33
import (
44
"bytes"

v2/eoptions/depth_service.go v2/options/depth_service.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package eoptions
1+
package options
22

33
import (
44
"context"

v2/eoptions/depth_service_test.go v2/options/depth_service_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package eoptions
1+
package options
22

33
import (
44
"testing"

v2/eoptions/exchange_info_service.go v2/options/exchange_info_service.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package eoptions
1+
package options
22

33
import (
44
"context"

v2/eoptions/exchange_info_service_test.go v2/options/exchange_info_service_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package eoptions
1+
package options
22

33
import (
44
"testing"

v2/eoptions/exercise_history_service.go v2/options/exercise_history_service.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package eoptions
1+
package options
22

33
import (
44
"context"

v2/eoptions/exercise_history_service_test.go v2/options/exercise_history_service_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package eoptions
1+
package options
22

33
import (
44
"testing"

v2/eoptions/index_service.go v2/options/index_service.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package eoptions
1+
package options
22

33
import (
44
"context"

v2/eoptions/index_service_test.go v2/options/index_service_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package eoptions
1+
package options
22

33
import (
44
"testing"

v2/eoptions/kline_service.go v2/options/kline_service.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package eoptions
1+
package options
22

33
import (
44
"context"

v2/eoptions/kline_service_test.go v2/options/kline_service_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package eoptions
1+
package options
22

33
import (
44
"testing"

v2/eoptions/mark_service.go v2/options/mark_service.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package eoptions
1+
package options
22

33
import (
44
"context"

v2/eoptions/mark_service_test.go v2/options/mark_service_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package eoptions
1+
package options
22

33
import (
44
"testing"

v2/eoptions/open_interest_service.go v2/options/open_interest_service.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package eoptions
1+
package options
22

33
import (
44
"context"

v2/eoptions/open_interest_service_test.go v2/options/open_interest_service_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package eoptions
1+
package options
22

33
import (
44
"testing"

v2/eoptions/order_service.go v2/options/order_service.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package eoptions
1+
package options
22

33
import (
44
"context"

v2/eoptions/order_service_test.go v2/options/order_service_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package eoptions
1+
package options
22

33
import (
44
"encoding/json"

v2/eoptions/request.go v2/options/request.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package eoptions
1+
package options
22

33
import (
44
"fmt"

v2/eoptions/server_service.go v2/options/server_service.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package eoptions
1+
package options
22

33
import (
44
"context"

v2/eoptions/server_service_test.go v2/options/server_service_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package eoptions
1+
package options
22

33
import (
44
"testing"

v2/eoptions/ticker_service.go v2/options/ticker_service.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package eoptions
1+
package options
22

33
import (
44
"context"

v2/eoptions/ticker_service_test.go v2/options/ticker_service_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package eoptions
1+
package options
22

33
import (
44
"testing"

v2/eoptions/trade_service_test.go v2/options/trade_service_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package eoptions
1+
package options
22

33
import (
44
"testing"

v2/eoptions/trades_service.go v2/options/trades_service.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package eoptions
1+
package options
22

33
import (
44
"context"

v2/eoptions/user_stream_service.go v2/options/user_stream_service.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package eoptions
1+
package options
22

33
import (
44
"context"

v2/eoptions/user_stream_service_test.go v2/options/user_stream_service_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package eoptions
1+
package options
22

33
import (
44
"testing"

v2/eoptions/websocket.go v2/options/websocket.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package eoptions
1+
package options
22

33
import (
44
"net/http"

v2/eoptions/websocket_service.go v2/options/websocket_service.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package eoptions
1+
package options
22

33
import (
44
"encoding/json"
@@ -10,9 +10,9 @@ import (
1010

1111
// Endpoints
1212
const (
13-
baseWsMainUrl = "wss://nbstream.binance.com/eoptions/ws"
13+
baseWsMainUrl = "wss://nbstream.binance.com/options/ws"
1414
baseWsTestnetUrl = "" // unknown now
15-
baseCombinedMainURL = "wss://nbstream.binance.com/eoptions/stream?streams="
15+
baseCombinedMainURL = "wss://nbstream.binance.com/options/stream?streams="
1616
baseCombinedTestnetURL = "" // unknown now
1717
)
1818

v2/eoptions/websocket_service_test.go v2/options/websocket_service_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package eoptions
1+
package options
22

33
import (
44
"errors"

0 commit comments

Comments
 (0)