forked from amir-the-h/okex
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
vic
committed
Sep 18, 2023
1 parent
ff33278
commit 04cdba6
Showing
43 changed files
with
98 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
@@ -25,7 +25,7 @@ Installation | |
----------------- | ||
|
||
```bash | ||
go get github.com/amir-the-h/[email protected] | ||
go get github.com/vx416/[email protected] | ||
``` | ||
|
||
Usage | ||
|
@@ -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" | ||
) | ||
|
||
|
@@ -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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ package events | |
|
||
import ( | ||
"encoding/json" | ||
"github.com/amir-the-h/okex" | ||
"github.com/vx416/okex" | ||
) | ||
|
||
type ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.