diff --git a/README.md b/README.md index 0d48cfd9..7e79f5e2 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/v2/client.go b/v2/client.go index 0aea0e32..a2d7c27b 100644 --- a/v2/client.go +++ b/v2/client.go @@ -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" ) diff --git a/v2/delivery/client.go b/v2/delivery/client.go index 890b24e6..83108358 100644 --- a/v2/delivery/client.go +++ b/v2/delivery/client.go @@ -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" ) diff --git a/v2/delivery/server_service_test.go b/v2/delivery/server_service_test.go index 69643171..3eb6af9e 100644 --- a/v2/delivery/server_service_test.go +++ b/v2/delivery/server_service_test.go @@ -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" ) diff --git a/v2/futures/client.go b/v2/futures/client.go index 543d240a..5f14bb7f 100644 --- a/v2/futures/client.go +++ b/v2/futures/client.go @@ -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 diff --git a/v2/futures/mark_price.go b/v2/futures/mark_price.go index 3a181c0c..ca69c7f5 100644 --- a/v2/futures/mark_price.go +++ b/v2/futures/mark_price.go @@ -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 diff --git a/v2/futures/server_service_test.go b/v2/futures/server_service_test.go index 355890c5..a1326e87 100644 --- a/v2/futures/server_service_test.go +++ b/v2/futures/server_service_test.go @@ -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" ) diff --git a/v2/futures/ticker_service.go b/v2/futures/ticker_service.go index 694e1cee..b9a4ed99 100644 --- a/v2/futures/ticker_service.go +++ b/v2/futures/ticker_service.go @@ -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 diff --git a/v2/go.mod b/v2/go.mod index 45a82427..b3f40e7f 100644 --- a/v2/go.mod +++ b/v2/go.mod @@ -1,4 +1,4 @@ -module github.com/adshao/go-binance/v2 +module github.com/kavehmoradi/go-binance/v2 go 1.13 @@ -6,7 +6,7 @@ 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 diff --git a/v2/go.sum b/v2/go.sum index bac6f69c..739197aa 100644 --- a/v2/go.sum +++ b/v2/go.sum @@ -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= diff --git a/v2/server_service_test.go b/v2/server_service_test.go index 9b010f47..3270437a 100644 --- a/v2/server_service_test.go +++ b/v2/server_service_test.go @@ -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" ) diff --git a/v2/ticker_service.go b/v2/ticker_service.go index 6e8f28c1..8508b5dc 100644 --- a/v2/ticker_service.go +++ b/v2/ticker_service.go @@ -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