Skip to content

Commit

Permalink
change go module name
Browse files Browse the repository at this point in the history
  • Loading branch information
vic committed Sep 18, 2023
1 parent ff33278 commit 04cdba6
Show file tree
Hide file tree
Showing 43 changed files with 98 additions and 98 deletions.
30 changes: 15 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
okex
====
[![Go Reference](https://pkg.go.dev/badge/github.com/amir-the-h/okex.svg)](https://pkg.go.dev/github.com/amir-the-h/okex)
[![GitHub go.mod Go version of a Go module](https://img.shields.io/github/go-mod/go-version/amir-the-h/okex.svg)](https://github.com/amir-the-h/okex)
[![GoReportCard example](https://goreportcard.com/badge/github.com/amir-the-h/okex)](https://goreportcard.com/report/github.com/amir-the-h/okex)
[![GitHub license](https://img.shields.io/github/license/amir-the-h/okex.svg)](https://github.com/amir-the-h/okex/blob/main/LICENSE)
[![GitHub release](https://img.shields.io/github/release/amir-the-h/okex.svg)](https://GitHub.com/amir-the-h/okex/releases/)
[![Go Reference](https://pkg.go.dev/badge/github.com/vx416/okex.svg)](https://pkg.go.dev/github.com/vx416/okex)
[![GitHub go.mod Go version of a Go module](https://img.shields.io/github/go-mod/go-version/vx416/okex.svg)](https://github.com/vx416/okex)
[![GoReportCard example](https://goreportcard.com/badge/github.com/vx416/okex)](https://goreportcard.com/report/github.com/vx416/okex)
[![GitHub license](https://img.shields.io/github/license/vx416/okex.svg)](https://github.com/vx416/okex/blob/main/LICENSE)
[![GitHub release](https://img.shields.io/github/release/vx416/okex.svg)](https://GitHub.com/vx416/okex/releases/)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)
[![CI](https://github.com/amir-the-h/okex/actions/workflows/main.yml/badge.svg)](https://github.com/amir-the-h/okex/actions/workflows/main.yml)
[![CodeQL](https://github.com/amir-the-h/okex/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/amir-the-h/okex/actions/workflows/codeql-analysis.yml)
[![AutoRelease](https://github.com/amir-the-h/okex/actions/workflows/release.yml/badge.svg)](https://github.com/amir-the-h/okex/actions/workflows/release.yml)
[![CI](https://github.com/vx416/okex/actions/workflows/main.yml/badge.svg)](https://github.com/vx416/okex/actions/workflows/main.yml)
[![CodeQL](https://github.com/vx416/okex/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/vx416/okex/actions/workflows/codeql-analysis.yml)
[![AutoRelease](https://github.com/vx416/okex/actions/workflows/release.yml/badge.svg)](https://github.com/vx416/okex/actions/workflows/release.yml)

*NOTICE:*
> PACKAGE IS CURRENTLY UNDER HEAVY DEVELOPMENT AND THERE IS NO GUARANTY FOR STABILITY.
Expand All @@ -25,7 +25,7 @@ Installation
-----------------

```bash
go get github.com/amir-the-h/[email protected]
go get github.com/vx416/[email protected]
```

Usage
Expand All @@ -36,11 +36,11 @@ package main

import (
"context"
"github.com/amir-the-h/okex"
"github.com/amir-the-h/okex/api"
"github.com/amir-the-h/okex/events"
"github.com/amir-the-h/okex/events/public"
ws_public_requests "github.com/amir-the-h/okex/requests/ws/public"
"github.com/vx416/okex"
"github.com/vx416/okex/api"
"github.com/vx416/okex/events"
"github.com/vx416/okex/events/public"
ws_public_requests "github.com/vx416/okex/requests/ws/public"
"log"
)

Expand Down Expand Up @@ -138,4 +138,4 @@ Features
* Fully automated authorization steps for both [REST](/api/rest) and [WS](/api/ws)
* To receive websocket events you can choose [RawEventChan](/api/ws/client.go#L25)
, [StructuredEventChan](/api/ws/client.go#L28), or provide your own
channels. [More info](https://github.com/amir-the-h/okex/wiki/Handling-WS-events)
channels. [More info](https://github.com/vx416/okex/wiki/Handling-WS-events)
6 changes: 3 additions & 3 deletions api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package api

import (
"context"
"github.com/amir-the-h/okex"
"github.com/amir-the-h/okex/api/rest"
"github.com/amir-the-h/okex/api/ws"
"github.com/vx416/okex"
"github.com/vx416/okex/api/rest"
"github.com/vx416/okex/api/ws"
)

// Client is the main api wrapper of okex
Expand Down
6 changes: 3 additions & 3 deletions api/rest/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package rest

import (
"encoding/json"
"github.com/amir-the-h/okex"
requests "github.com/amir-the-h/okex/requests/rest/account"
responses "github.com/amir-the-h/okex/responses/account"
"github.com/vx416/okex"
requests "github.com/vx416/okex/requests/rest/account"
responses "github.com/vx416/okex/responses/account"
"net/http"
"strings"
)
Expand Down
6 changes: 3 additions & 3 deletions api/rest/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"encoding/base64"
"encoding/json"
"fmt"
"github.com/amir-the-h/okex"
requests "github.com/amir-the-h/okex/requests/rest/public"
responses "github.com/amir-the-h/okex/responses/public_data"
"github.com/vx416/okex"
requests "github.com/vx416/okex/requests/rest/public"
responses "github.com/vx416/okex/responses/public_data"
"net/http"
"strings"
"time"
Expand Down
6 changes: 3 additions & 3 deletions api/rest/funding.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package rest

import (
"encoding/json"
"github.com/amir-the-h/okex"
requests "github.com/amir-the-h/okex/requests/rest/funding"
responses "github.com/amir-the-h/okex/responses/funding"
"github.com/vx416/okex"
requests "github.com/vx416/okex/requests/rest/funding"
responses "github.com/vx416/okex/responses/funding"
"net/http"
"strings"
)
Expand Down
6 changes: 3 additions & 3 deletions api/rest/market.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package rest

import (
"encoding/json"
"github.com/amir-the-h/okex"
requests "github.com/amir-the-h/okex/requests/rest/market"
responses "github.com/amir-the-h/okex/responses/market"
"github.com/vx416/okex"
requests "github.com/vx416/okex/requests/rest/market"
responses "github.com/vx416/okex/responses/market"
"net/http"
)

Expand Down
6 changes: 3 additions & 3 deletions api/rest/public_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package rest

import (
"encoding/json"
"github.com/amir-the-h/okex"
requests "github.com/amir-the-h/okex/requests/rest/public"
responses "github.com/amir-the-h/okex/responses/public_data"
"github.com/vx416/okex"
requests "github.com/vx416/okex/requests/rest/public"
responses "github.com/vx416/okex/responses/public_data"
"net/http"
)

Expand Down
6 changes: 3 additions & 3 deletions api/rest/sub_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package rest

import (
"encoding/json"
"github.com/amir-the-h/okex"
requests "github.com/amir-the-h/okex/requests/rest/subaccount"
responses "github.com/amir-the-h/okex/responses/sub_account"
"github.com/vx416/okex"
requests "github.com/vx416/okex/requests/rest/subaccount"
responses "github.com/vx416/okex/responses/sub_account"
"net/http"
"strings"
)
Expand Down
6 changes: 3 additions & 3 deletions api/rest/trade.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package rest

import (
"encoding/json"
"github.com/amir-the-h/okex"
requests "github.com/amir-the-h/okex/requests/rest/trade"
responses "github.com/amir-the-h/okex/responses/trade"
"github.com/vx416/okex"
requests "github.com/vx416/okex/requests/rest/trade"
responses "github.com/vx416/okex/responses/trade"
"net/http"
)

Expand Down
6 changes: 3 additions & 3 deletions api/rest/trade_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package rest

import (
"encoding/json"
"github.com/amir-the-h/okex"
requests "github.com/amir-the-h/okex/requests/rest/tradedata"
responses "github.com/amir-the-h/okex/responses/trade_data"
"github.com/vx416/okex"
requests "github.com/vx416/okex/requests/rest/tradedata"
responses "github.com/vx416/okex/responses/trade_data"
"net/http"
)

Expand Down
4 changes: 2 additions & 2 deletions api/ws/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"encoding/base64"
"encoding/json"
"fmt"
"github.com/amir-the-h/okex"
"github.com/amir-the-h/okex/events"
"github.com/gorilla/websocket"
"github.com/vx416/okex"
"github.com/vx416/okex/events"
"net/http"
"sync"
"time"
Expand Down
8 changes: 4 additions & 4 deletions api/ws/private.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ package ws

import (
"encoding/json"
"github.com/amir-the-h/okex"
"github.com/amir-the-h/okex/events"
"github.com/amir-the-h/okex/events/private"
requests "github.com/amir-the-h/okex/requests/ws/private"
"github.com/vx416/okex"
"github.com/vx416/okex/events"
"github.com/vx416/okex/events/private"
requests "github.com/vx416/okex/requests/ws/private"
)

// Private
Expand Down
8 changes: 4 additions & 4 deletions api/ws/public.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package ws
import (
"encoding/json"
"fmt"
"github.com/amir-the-h/okex"
"github.com/amir-the-h/okex/events"
"github.com/amir-the-h/okex/events/public"
requests "github.com/amir-the-h/okex/requests/ws/public"
"github.com/vx416/okex"
"github.com/vx416/okex/events"
"github.com/vx416/okex/events/public"
requests "github.com/vx416/okex/requests/ws/public"
"strings"
)

Expand Down
4 changes: 2 additions & 2 deletions api/ws/trade.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package ws

import (
"github.com/amir-the-h/okex"
requests "github.com/amir-the-h/okex/requests/ws/trade"
"github.com/vx416/okex"
requests "github.com/vx416/okex/requests/ws/trade"
)

// Trade
Expand Down
2 changes: 1 addition & 1 deletion events/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package events

import (
"encoding/json"
"github.com/amir-the-h/okex"
"github.com/vx416/okex"
)

type (
Expand Down
6 changes: 3 additions & 3 deletions events/private/private_events.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package private

import (
"github.com/amir-the-h/okex/events"
"github.com/amir-the-h/okex/models/account"
"github.com/amir-the-h/okex/models/trade"
"github.com/vx416/okex/events"
"github.com/vx416/okex/models/account"
"github.com/vx416/okex/models/trade"
)

type (
Expand Down
6 changes: 3 additions & 3 deletions events/public/public_events.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package public

import (
"github.com/amir-the-h/okex/events"
"github.com/amir-the-h/okex/models/market"
"github.com/amir-the-h/okex/models/publicdata"
"github.com/vx416/okex/events"
"github.com/vx416/okex/models/market"
"github.com/vx416/okex/models/publicdata"
)

type (
Expand Down
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module github.com/amir-the-h/okex
module github.com/vx416/okex

go 1.17
go 1.20

require github.com/gorilla/websocket v1.4.2
require github.com/gorilla/websocket v1.5.0
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
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/gorilla/websocket v1.5.0 h1:PPwGk2jz7EePpoHN/+ClbZu8SPxiqlu12wZP/3sWmnc=
github.com/gorilla/websocket v1.5.0/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
2 changes: 1 addition & 1 deletion models/account/account_models.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package account

import (
"github.com/amir-the-h/okex"
"github.com/vx416/okex"
)

type (
Expand Down
2 changes: 1 addition & 1 deletion models/funding/funding_models.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package funding

import "github.com/amir-the-h/okex"
import "github.com/vx416/okex"

type (
Currency struct {
Expand Down
2 changes: 1 addition & 1 deletion models/market/market_models.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package market
import (
"encoding/json"
"fmt"
"github.com/amir-the-h/okex"
"github.com/vx416/okex"
"strconv"
"time"
)
Expand Down
2 changes: 1 addition & 1 deletion models/publicdata/publicdata_models.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package publicdata

import (
"github.com/amir-the-h/okex"
"github.com/vx416/okex"
)

type (
Expand Down
2 changes: 1 addition & 1 deletion models/subaccount/subaccount_models.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package subaccount

import (
"github.com/amir-the-h/okex"
"github.com/vx416/okex"
)

type (
Expand Down
2 changes: 1 addition & 1 deletion models/trade/trade_models.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package trade

import (
"github.com/amir-the-h/okex"
"github.com/vx416/okex"
)

type (
Expand Down
2 changes: 1 addition & 1 deletion models/tradedata/tradedata_models.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package tradedata
import (
"encoding/json"
"fmt"
"github.com/amir-the-h/okex"
"github.com/vx416/okex"
"strconv"
"time"
)
Expand Down
2 changes: 1 addition & 1 deletion requests/rest/account/account_requests.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package account

import "github.com/amir-the-h/okex"
import "github.com/vx416/okex"

type (
GetBalance struct {
Expand Down
2 changes: 1 addition & 1 deletion requests/rest/funding/funding_requests.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package funding

import "github.com/amir-the-h/okex"
import "github.com/vx416/okex"

type (
GetBalance struct {
Expand Down
2 changes: 1 addition & 1 deletion requests/rest/market/market_requests.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package market

import "github.com/amir-the-h/okex"
import "github.com/vx416/okex"

type (
GetTickers struct {
Expand Down
2 changes: 1 addition & 1 deletion requests/rest/public/public_requests.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package public

import "github.com/amir-the-h/okex"
import "github.com/vx416/okex"

type (
GetInstruments struct {
Expand Down
2 changes: 1 addition & 1 deletion requests/rest/subaccount/subaccount_requests.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package subaccount

import "github.com/amir-the-h/okex"
import "github.com/vx416/okex"

type (
ViewList struct {
Expand Down
2 changes: 1 addition & 1 deletion requests/rest/trade/trade_requests.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package trade

import (
"github.com/amir-the-h/okex"
"github.com/vx416/okex"
)

type (
Expand Down
2 changes: 1 addition & 1 deletion requests/rest/tradedata/trade_data_requests.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package tradedata

import "github.com/amir-the-h/okex"
import "github.com/vx416/okex"

type (
GetTakerVolume struct {
Expand Down
Loading

0 comments on commit 04cdba6

Please sign in to comment.