Skip to content

Commit

Permalink
Release: v1.0.27-alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
amir-the-h committed Oct 19, 2021
1 parent edefb86 commit 866a7c2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@ Changelog
=========
All notable changes to this project will be documented in this file.

v1.0.27-alpha
------------

### Changed

- Updated `github.com/amir-the-h/okex` to v1.0.26-alpha
- Added ability to select server on okex fetcher

v1.0.26-alpha
------------

Expand Down
8 changes: 6 additions & 2 deletions fetchers/okex.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,12 @@ type Okex struct {
}

// NewOkex returns a pointer to a fresh Okex tradeKnife.Fetcher.
func NewOkex(apiKey, secretKey, passphrase string) (*Okex, error) {
c, err := api.NewClient(context.Background(), apiKey, secretKey, passphrase, okex.NormalServer)
func NewOkex(apiKey, secretKey, passphrase string, dest ...okex.Destination) (*Okex, error) {
d := okex.NormalServer
if len(dest) > 0 {
d = dest[0]
}
c, err := api.NewClient(context.Background(), apiKey, secretKey, passphrase, d)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 866a7c2

Please sign in to comment.