Skip to content

Commit

Permalink
Rename module
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaveh Moradi committed May 11, 2021
1 parent 39b7be5 commit e9723c6
Show file tree
Hide file tree
Showing 12 changed files with 25 additions and 25 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
A Golang SDK for [binance](https://www.binance.com) API.

[![Build Status](https://travis-ci.org/adshao/go-binance.svg?branch=master)](https://travis-ci.org/adshao/go-binance)
[![GoDoc](https://godoc.org/github.com/adshao/go-binance?status.svg)](https://godoc.org/github.com/adshao/go-binance)
[![Go Report Card](https://goreportcard.com/badge/github.com/adshao/go-binance)](https://goreportcard.com/report/github.com/adshao/go-binance)
[![GoDoc](https://godoc.org/github.com/kavehmoradi/go-binance?status.svg)](https://godoc.org/github.com/kavehmoradi/go-binance)
[![Go Report Card](https://goreportcard.com/badge/github.com/kavehmoradi/go-binance)](https://goreportcard.com/report/github.com/kavehmoradi/go-binance)
[![codecov](https://codecov.io/gh/adshao/go-binance/branch/master/graph/badge.svg)](https://codecov.io/gh/adshao/go-binance)

All the REST APIs listed in [binance API document](https://github.com/binance-exchange/binance-official-api-docs) are implemented, as well as the websocket APIs.
Expand All @@ -28,26 +28,26 @@ Name | Description | Status
### Installation

```shell
go get github.com/adshao/go-binance/v2
go get github.com/kavehmoradi/go-binance/v2
```

For v1 API, it has been moved to `v1` branch, please use:

```shell
go get github.com/adshao/go-binance/v1
go get github.com/kavehmoradi/go-binance/v1
```

### Importing

```golang
import (
"github.com/adshao/go-binance/v2"
"github.com/kavehmoradi/go-binance/v2"
)
```

### Documentation

[![GoDoc](https://godoc.org/github.com/adshao/go-binance?status.svg)](https://godoc.org/github.com/adshao/go-binance)
[![GoDoc](https://godoc.org/github.com/kavehmoradi/go-binance?status.svg)](https://godoc.org/github.com/kavehmoradi/go-binance)

### REST API

Expand All @@ -69,7 +69,7 @@ A service instance stands for a REST API endpoint and is initialized by client.N

Simply call API in chain style. Call Do() in the end to send HTTP request.

Following are some simple examples, please refer to [godoc](https://godoc.org/github.com/adshao/go-binance) for full references.
Following are some simple examples, please refer to [godoc](https://godoc.org/github.com/kavehmoradi/go-binance) for full references.

#### Create Order

Expand Down Expand Up @@ -323,7 +323,7 @@ Use the `binance.UseTestnet` flag before calling the client creation and the web

```go
import (
"github.com/adshao/go-binance/v2"
"github.com/kavehmoradi/go-binance/v2"
)

binance.UseTestnet = true
Expand All @@ -336,7 +336,7 @@ Use the `futures.UseTestnet` flag before calling the client creation and the web

```go
import (
"github.com/adshao/go-binance/v2/futures"
"github.com/kavehmoradi/go-binance/v2/futures"
)

futures.UseTestnet = true
Expand All @@ -349,7 +349,7 @@ Use the `delivery.UseTestnet` flag before calling the client creation and the we

```go
import (
"github.com/adshao/go-binance/v2/delivery"
"github.com/kavehmoradi/go-binance/v2/delivery"
)

delivery.UseTestnet = true
Expand Down
6 changes: 3 additions & 3 deletions v2/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ import (
"os"
"time"

"github.com/adshao/go-binance/v2/common"
"github.com/adshao/go-binance/v2/delivery"
"github.com/adshao/go-binance/v2/futures"
"github.com/kavehmoradi/go-binance/v2/common"
"github.com/kavehmoradi/go-binance/v2/delivery"
"github.com/kavehmoradi/go-binance/v2/futures"
"github.com/bitly/go-simplejson"
)

Expand Down
2 changes: 1 addition & 1 deletion v2/delivery/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"os"
"time"

"github.com/adshao/go-binance/v2/common"
"github.com/kavehmoradi/go-binance/v2/common"
"github.com/bitly/go-simplejson"
)

Expand Down
2 changes: 1 addition & 1 deletion v2/delivery/server_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"net/http"
"testing"

"github.com/adshao/go-binance/v2/common"
"github.com/kavehmoradi/go-binance/v2/common"
"github.com/stretchr/testify/suite"
)

Expand Down
2 changes: 1 addition & 1 deletion v2/futures/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import (
"os"
"time"

"github.com/adshao/go-binance/v2/common"
"github.com/bitly/go-simplejson"
"github.com/kavehmoradi/go-binance/v2/common"
)

// SideType define side type of order
Expand Down
2 changes: 1 addition & 1 deletion v2/futures/mark_price.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"encoding/json"

"github.com/adshao/go-binance/v2/common"
"github.com/kavehmoradi/go-binance/v2/common"
)

// PremiumIndexService get premium index
Expand Down
2 changes: 1 addition & 1 deletion v2/futures/server_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"net/http"
"testing"

"github.com/adshao/go-binance/v2/common"
"github.com/kavehmoradi/go-binance/v2/common"
"github.com/stretchr/testify/suite"
)

Expand Down
2 changes: 1 addition & 1 deletion v2/futures/ticker_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"encoding/json"

"github.com/adshao/go-binance/v2/common"
"github.com/kavehmoradi/go-binance/v2/common"
)

// ListBookTickersService list best price/qty on the order book for a symbol or symbols
Expand Down
4 changes: 2 additions & 2 deletions v2/go.mod
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
module github.com/adshao/go-binance/v2
module github.com/kavehmoradi/go-binance/v2

go 1.13

require (
github.com/bitly/go-simplejson v0.5.0
github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869 // indirect
github.com/davecgh/go-spew v1.1.0 // indirect
github.com/gorilla/websocket v1.2.0
github.com/gorilla/websocket v1.4.2
github.com/kr/pretty v0.2.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/stretchr/objx v0.1.0 // indirect
Expand Down
4 changes: 2 additions & 2 deletions v2/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869 h1:DDGfHa7BWjL4Yn
github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869/go.mod h1:Ekp36dRnpXw/yCqJaO+ZrUyxD+3VXMFFr56k5XYrpB4=
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/gorilla/websocket v1.2.0 h1:VJtLvh6VQym50czpZzx07z/kw9EgAxI3x1ZB8taTMQQ=
github.com/gorilla/websocket v1.2.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ=
github.com/gorilla/websocket v1.4.2 h1:+/TMaTYc4QFitKJxsQ7Yye35DkWvkdLcvGKqM+x0Ufc=
github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
github.com/kr/pretty v0.2.0 h1:s5hAObm+yFO5uHYt5dYjxi2rXrsnmRpJx4OYvIWUaQs=
github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
Expand Down
2 changes: 1 addition & 1 deletion v2/server_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"net/http"
"testing"

"github.com/adshao/go-binance/v2/common"
"github.com/kavehmoradi/go-binance/v2/common"
"github.com/stretchr/testify/suite"
)

Expand Down
2 changes: 1 addition & 1 deletion v2/ticker_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"encoding/json"

"github.com/adshao/go-binance/v2/common"
"github.com/kavehmoradi/go-binance/v2/common"
)

// ListBookTickersService list best price/qty on the order book for a symbol or symbols
Expand Down

0 comments on commit e9723c6

Please sign in to comment.