Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exchanges: OkCoin Update #1436

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Open

Conversation

samuael
Copy link
Contributor

@samuael samuael commented Dec 28, 2023

Selam Everyone

This PR includes comprehensive updates to types, web-socket handlers, wrapper functions, and some endpoint methods. I have conducted live testing on web socket push data handling including the order book. Cleaned up the codebase by removing the okcoin_convert.go file and replaced timestamp information with 'convert.ExchangeTime' for improved clarity and efficiency.

Fixes # (issue)

Type of change

Please delete options that are not relevant and add an x in [] as the item is complete.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How has this been tested

  • go test ./... -race
  • golangci-lint run
  • Test X

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented on my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation and regenerated documentation via the documentation tool
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally and on Github Actions with my changes
  • Any dependent changes have been merged and published in downstream modules

Copy link
Collaborator

@shazbert shazbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested and changes look good. Just two suggestions.

exchanges/okcoin/okcoin.go Show resolved Hide resolved
Checksum int64 `json:"checksum"`
Asks [][4]types.Number `json:"asks"` // [ Price, Quantity, depreciated, number of orders at the price ]
Bids [][4]types.Number `json:"bids"` // [ Price, Quantity, depreciated, number of orders at the price ]
Timestamp convert.ExchangeTime `json:"ts"`
}

func (a *WebsocketOrderBook) prepareOrderbook() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know if this function is needed. Can you review this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. This was to match the order book checksum calculation criteria of OkCoin.

After subscribing to the incremental load push (such as books 400 levels) of Order Book Channel, users first receive the initial full load of market depth. After the incremental load is subsequently received, update the local full load.
If there is the same price, compare the size. If the size is 0, delete this depth data. If the size changes, replace the original data.
If there is no same price, sort by price (bid in descending order, ask in ascending order), and insert the depth information into the full load.

Calculate Checksum

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So there are a few changes below and the reasonings:

  • Removed prepareOrderbook method completely as the 0 size manipulation is being handled in o.Websocket.Orderbook.Update
  • Removes mutex protection as these updates are currently processed linearly.
  • In snapshot we were checking the data incoming for integrity, pushes check to post storage and application checking to ensure that was in stored is true and correct against checksum.
  • In updates checking checksum is not pushed on every update, so only fetch in store and do checksum calculation when needed.
  • Removed CalculateChecksum pre-check checksum functionality as it's a double and not needed.
diff --git a/exchanges/okcoin/okcoin_types.go b/exchanges/okcoin/okcoin_types.go
index 73711893c..28035c473 100644
--- a/exchanges/okcoin/okcoin_types.go
+++ b/exchanges/okcoin/okcoin_types.go
@@ -166,37 +166,6 @@ type WebsocketOrderBook struct {
        Timestamp convert.ExchangeTime `json:"ts"`
 }

-func (a *WebsocketOrderBook) prepareOrderbook() {
-       asks := [][4]types.Number{}
-       for x := range a.Asks {
-               if len(asks) > 0 && asks[len(asks)-1][0].Float64() == a.Asks[x][0].Float64() {
-                       if a.Asks[x][1].Float64() != 0 {
-                               if asks[len(asks)-1][1].Float64() > a.Asks[x][1].Float64() {
-                                       asks[len(asks)-1], a.Asks[x] = a.Asks[x], asks[len(asks)-1]
-                               }
-                       } else if a.Asks[x][1] == 0 {
-                               continue
-                       }
-               }
-               asks = append(asks, a.Asks[x])
-       }
-       bids := [][4]types.Number{}
-       for x := range a.Bids {
-               if len(bids) > 0 && bids[len(bids)-1][0].Float64() == a.Bids[x][0].Float64() {
-                       if a.Bids[x][1].Float64() != 0 {
-                               if bids[len(bids)-1][1].Float64() < a.Bids[x][1].Float64() {
-                                       bids[len(bids)-1], a.Bids[x] = a.Bids[x], bids[len(bids)-1]
-                               }
-                       } else if a.Bids[x][1] == 0 {
-                               continue
-                       }
-               }
-               bids = append(bids, a.Bids[x])
-       }
-       a.Asks = asks
-       a.Bids = bids
-}
-
 // WebsocketDataResponse formats all response data for a websocket event
 type WebsocketDataResponse struct {
        ID        string `json:"id"`
diff --git a/exchanges/okcoin/okcoin_websocket.go b/exchanges/okcoin/okcoin_websocket.go
index aadd2f2f7..9d235d2a4 100644
--- a/exchanges/okcoin/okcoin_websocket.go
+++ b/exchanges/okcoin/okcoin_websocket.go
@@ -10,7 +10,6 @@ import (
        "net/http"
        "strconv"
        "strings"
-       "sync"
        "time"

        "github.com/gorilla/websocket"
@@ -474,11 +473,7 @@ func (o *Okcoin) wsProcessAccount(respRaw []byte) error {
        return nil
 }

-var (
-       // the following variables are used to synchronize and track changes to the orderbook buffer and corresponding instrument ID
-       orderbookSnapshotLock sync.Mutex
-       orderbookSnapshotMap  = map[string]struct{}{}
-)
+var orderbookSnapshotMap = map[string]bool{}

 func (o *Okcoin) wsProcessOrderbook(respRaw []byte, obChannel string) error {
        var resp WebsocketOrderbookResponse
@@ -491,25 +486,22 @@ func (o *Okcoin) wsProcessOrderbook(respRaw []byte, obChannel string) error {
                return err
        }
        var snapshot bool
-       orderbookSnapshotLock.Lock()
-       defer orderbookSnapshotLock.Unlock()
        if resp.Action == "" {
-               _, okay := orderbookSnapshotMap[resp.Arg.InstrumentID]
+               okay := orderbookSnapshotMap[resp.Arg.InstrumentID]
                if !okay {
-                       orderbookSnapshotMap[resp.Arg.InstrumentID] = struct{}{}
+                       orderbookSnapshotMap[resp.Arg.InstrumentID] = true
                        snapshot = true
                }
        } else {
                switch resp.Action {
                case "snapshot":
                        snapshot = true
-                       orderbookSnapshotMap[resp.Arg.InstrumentID] = struct{}{}
+                       orderbookSnapshotMap[resp.Arg.InstrumentID] = true
                case "update":
                        snapshot = false
                }
        }
        if snapshot {
-               resp.Data[0].prepareOrderbook()
                if len(resp.Data[0].Asks)+len(resp.Data[0].Bids) == 0 {
                        return nil
                }
@@ -529,18 +521,7 @@ func (o *Okcoin) wsProcessOrderbook(respRaw []byte, obChannel string) error {
                        base.Bids[b].Amount = resp.Data[0].Bids[b][1].Float64()
                        base.Bids[b].Price = resp.Data[0].Bids[b][0].Float64()
                }
-               var signedChecksum int32
-               signedChecksum, err = o.CalculateChecksum(&resp.Data[0])
-               if err != nil {
-                       return fmt.Errorf("%s channel: Orderbook unable to calculate orderbook checksum: %s", o.Name, err)
-               }
-               if resp.Data[0].Checksum != 0 && int64(signedChecksum) != resp.Data[0].Checksum {
-                       return fmt.Errorf("%s channel: Orderbook for %v checksum invalid", o.Name, cp)
-               }
-               err = base.Process()
-               if err != nil {
-                       return err
-               }
+
                err = o.Websocket.Orderbook.LoadSnapshot(&base)
                if err != nil {
                        if errors.Is(err, orderbook.ErrOrderbookInvalid) {
@@ -551,8 +532,21 @@ func (o *Okcoin) wsProcessOrderbook(respRaw []byte, obChannel string) error {
                        }
                        return err
                }
+
+               if resp.Data[0].Checksum != 0 {
+                       var check *orderbook.Base
+                       check, err = o.Websocket.Orderbook.GetOrderbook(cp, asset.Spot)
+                       if err != nil {
+                               return err
+                       }
+                       if checksum := int64(o.CalculateOrderbookUpdateChecksum(check)); checksum != resp.Data[0].Checksum {
+                               return fmt.Errorf("%s channel: Orderbook for %v checksum invalid got: %v expecting: %v", o.Name, cp, checksum, resp.Data[0].Checksum)
+                       }
+               }
+
                return nil
        }
+
        if len(resp.Data[0].Asks)+len(resp.Data[0].Bids) == 0 {
                return nil
        }
@@ -580,13 +574,15 @@ func (o *Okcoin) wsProcessOrderbook(respRaw []byte, obChannel string) error {
                }
                return err
        }
-       updatedOb, err := o.Websocket.Orderbook.GetOrderbook(cp, asset.Spot)
-       if err != nil {
-               return err
-       }
-       checksum := o.CalculateOrderbookUpdateChecksum(updatedOb)
-       if resp.Data[0].Checksum != 0 && int64(checksum) != resp.Data[0].Checksum {
-               return fmt.Errorf("checksum failed, calculated '%v' received '%v'", checksum, resp.Data)
+
+       if resp.Data[0].Checksum != 0 {
+               check, err := o.Websocket.Orderbook.GetOrderbook(cp, asset.Spot)
+               if err != nil {
+                       return err
+               }
+               if checksum := o.CalculateOrderbookUpdateChecksum(check); int64(checksum) != resp.Data[0].Checksum {
+                       return fmt.Errorf("checksum failed, calculated '%v' received '%v'", checksum, resp.Data)
+               }
        }
        return nil
 }
@@ -720,32 +716,6 @@ func (o *Okcoin) AppendWsOrderbookItems(entries [][4]types.Number) ([]orderbook.
        return items, nil
 }

-// CalculateChecksum alternates over the first 25 bid and ask
-// entries from websocket data. The checksum is made up of the price and the
-// quantity with a semicolon (:) deliminating them. This will also work when
-// there are less than 25 entries (for whatever reason)
-// eg Bid:Ask:Bid:Ask:Ask:Ask
-func (o *Okcoin) CalculateChecksum(orderbookData *WebsocketOrderBook) (int32, error) {
-       orderbookData.prepareOrderbook()
-       var checksum strings.Builder
-       for i := 0; i < allowableIterations; i++ {
-               if len(orderbookData.Bids)-1 >= i {
-                       checksum.WriteString(orderbookData.Bids[i][0].String() +
-                               currency.ColonDelimiter +
-                               orderbookData.Bids[i][1].String() +
-                               currency.ColonDelimiter)
-               }
-               if len(orderbookData.Asks)-1 >= i {
-                       checksum.WriteString(orderbookData.Asks[i][0].String() +
-                               currency.ColonDelimiter +
-                               orderbookData.Asks[i][1].String() +
-                               currency.ColonDelimiter)
-               }
-       }
-       checksumStr := strings.TrimSuffix(checksum.String(), currency.ColonDelimiter)
-       return int32(crc32.ChecksumIEEE([]byte(checksumStr))), nil
-}
-
 // CalculateOrderbookUpdateChecksum calculated the orderbook update checksum using currency pair full snapshot.
 func (o *Okcoin) CalculateOrderbookUpdateChecksum(orderbookData *orderbook.Base) int32 {
        var checksum strings.Builder

Please apply and test updates.

@shazbert shazbert added the review me This pull request is ready for review label Dec 28, 2023
Copy link
Collaborator

@shazbert shazbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RE: orderbook checksum calculation.

Checksum int64 `json:"checksum"`
Asks [][4]types.Number `json:"asks"` // [ Price, Quantity, depreciated, number of orders at the price ]
Bids [][4]types.Number `json:"bids"` // [ Price, Quantity, depreciated, number of orders at the price ]
Timestamp convert.ExchangeTime `json:"ts"`
}

func (a *WebsocketOrderBook) prepareOrderbook() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So there are a few changes below and the reasonings:

  • Removed prepareOrderbook method completely as the 0 size manipulation is being handled in o.Websocket.Orderbook.Update
  • Removes mutex protection as these updates are currently processed linearly.
  • In snapshot we were checking the data incoming for integrity, pushes check to post storage and application checking to ensure that was in stored is true and correct against checksum.
  • In updates checking checksum is not pushed on every update, so only fetch in store and do checksum calculation when needed.
  • Removed CalculateChecksum pre-check checksum functionality as it's a double and not needed.
diff --git a/exchanges/okcoin/okcoin_types.go b/exchanges/okcoin/okcoin_types.go
index 73711893c..28035c473 100644
--- a/exchanges/okcoin/okcoin_types.go
+++ b/exchanges/okcoin/okcoin_types.go
@@ -166,37 +166,6 @@ type WebsocketOrderBook struct {
        Timestamp convert.ExchangeTime `json:"ts"`
 }

-func (a *WebsocketOrderBook) prepareOrderbook() {
-       asks := [][4]types.Number{}
-       for x := range a.Asks {
-               if len(asks) > 0 && asks[len(asks)-1][0].Float64() == a.Asks[x][0].Float64() {
-                       if a.Asks[x][1].Float64() != 0 {
-                               if asks[len(asks)-1][1].Float64() > a.Asks[x][1].Float64() {
-                                       asks[len(asks)-1], a.Asks[x] = a.Asks[x], asks[len(asks)-1]
-                               }
-                       } else if a.Asks[x][1] == 0 {
-                               continue
-                       }
-               }
-               asks = append(asks, a.Asks[x])
-       }
-       bids := [][4]types.Number{}
-       for x := range a.Bids {
-               if len(bids) > 0 && bids[len(bids)-1][0].Float64() == a.Bids[x][0].Float64() {
-                       if a.Bids[x][1].Float64() != 0 {
-                               if bids[len(bids)-1][1].Float64() < a.Bids[x][1].Float64() {
-                                       bids[len(bids)-1], a.Bids[x] = a.Bids[x], bids[len(bids)-1]
-                               }
-                       } else if a.Bids[x][1] == 0 {
-                               continue
-                       }
-               }
-               bids = append(bids, a.Bids[x])
-       }
-       a.Asks = asks
-       a.Bids = bids
-}
-
 // WebsocketDataResponse formats all response data for a websocket event
 type WebsocketDataResponse struct {
        ID        string `json:"id"`
diff --git a/exchanges/okcoin/okcoin_websocket.go b/exchanges/okcoin/okcoin_websocket.go
index aadd2f2f7..9d235d2a4 100644
--- a/exchanges/okcoin/okcoin_websocket.go
+++ b/exchanges/okcoin/okcoin_websocket.go
@@ -10,7 +10,6 @@ import (
        "net/http"
        "strconv"
        "strings"
-       "sync"
        "time"

        "github.com/gorilla/websocket"
@@ -474,11 +473,7 @@ func (o *Okcoin) wsProcessAccount(respRaw []byte) error {
        return nil
 }

-var (
-       // the following variables are used to synchronize and track changes to the orderbook buffer and corresponding instrument ID
-       orderbookSnapshotLock sync.Mutex
-       orderbookSnapshotMap  = map[string]struct{}{}
-)
+var orderbookSnapshotMap = map[string]bool{}

 func (o *Okcoin) wsProcessOrderbook(respRaw []byte, obChannel string) error {
        var resp WebsocketOrderbookResponse
@@ -491,25 +486,22 @@ func (o *Okcoin) wsProcessOrderbook(respRaw []byte, obChannel string) error {
                return err
        }
        var snapshot bool
-       orderbookSnapshotLock.Lock()
-       defer orderbookSnapshotLock.Unlock()
        if resp.Action == "" {
-               _, okay := orderbookSnapshotMap[resp.Arg.InstrumentID]
+               okay := orderbookSnapshotMap[resp.Arg.InstrumentID]
                if !okay {
-                       orderbookSnapshotMap[resp.Arg.InstrumentID] = struct{}{}
+                       orderbookSnapshotMap[resp.Arg.InstrumentID] = true
                        snapshot = true
                }
        } else {
                switch resp.Action {
                case "snapshot":
                        snapshot = true
-                       orderbookSnapshotMap[resp.Arg.InstrumentID] = struct{}{}
+                       orderbookSnapshotMap[resp.Arg.InstrumentID] = true
                case "update":
                        snapshot = false
                }
        }
        if snapshot {
-               resp.Data[0].prepareOrderbook()
                if len(resp.Data[0].Asks)+len(resp.Data[0].Bids) == 0 {
                        return nil
                }
@@ -529,18 +521,7 @@ func (o *Okcoin) wsProcessOrderbook(respRaw []byte, obChannel string) error {
                        base.Bids[b].Amount = resp.Data[0].Bids[b][1].Float64()
                        base.Bids[b].Price = resp.Data[0].Bids[b][0].Float64()
                }
-               var signedChecksum int32
-               signedChecksum, err = o.CalculateChecksum(&resp.Data[0])
-               if err != nil {
-                       return fmt.Errorf("%s channel: Orderbook unable to calculate orderbook checksum: %s", o.Name, err)
-               }
-               if resp.Data[0].Checksum != 0 && int64(signedChecksum) != resp.Data[0].Checksum {
-                       return fmt.Errorf("%s channel: Orderbook for %v checksum invalid", o.Name, cp)
-               }
-               err = base.Process()
-               if err != nil {
-                       return err
-               }
+
                err = o.Websocket.Orderbook.LoadSnapshot(&base)
                if err != nil {
                        if errors.Is(err, orderbook.ErrOrderbookInvalid) {
@@ -551,8 +532,21 @@ func (o *Okcoin) wsProcessOrderbook(respRaw []byte, obChannel string) error {
                        }
                        return err
                }
+
+               if resp.Data[0].Checksum != 0 {
+                       var check *orderbook.Base
+                       check, err = o.Websocket.Orderbook.GetOrderbook(cp, asset.Spot)
+                       if err != nil {
+                               return err
+                       }
+                       if checksum := int64(o.CalculateOrderbookUpdateChecksum(check)); checksum != resp.Data[0].Checksum {
+                               return fmt.Errorf("%s channel: Orderbook for %v checksum invalid got: %v expecting: %v", o.Name, cp, checksum, resp.Data[0].Checksum)
+                       }
+               }
+
                return nil
        }
+
        if len(resp.Data[0].Asks)+len(resp.Data[0].Bids) == 0 {
                return nil
        }
@@ -580,13 +574,15 @@ func (o *Okcoin) wsProcessOrderbook(respRaw []byte, obChannel string) error {
                }
                return err
        }
-       updatedOb, err := o.Websocket.Orderbook.GetOrderbook(cp, asset.Spot)
-       if err != nil {
-               return err
-       }
-       checksum := o.CalculateOrderbookUpdateChecksum(updatedOb)
-       if resp.Data[0].Checksum != 0 && int64(checksum) != resp.Data[0].Checksum {
-               return fmt.Errorf("checksum failed, calculated '%v' received '%v'", checksum, resp.Data)
+
+       if resp.Data[0].Checksum != 0 {
+               check, err := o.Websocket.Orderbook.GetOrderbook(cp, asset.Spot)
+               if err != nil {
+                       return err
+               }
+               if checksum := o.CalculateOrderbookUpdateChecksum(check); int64(checksum) != resp.Data[0].Checksum {
+                       return fmt.Errorf("checksum failed, calculated '%v' received '%v'", checksum, resp.Data)
+               }
        }
        return nil
 }
@@ -720,32 +716,6 @@ func (o *Okcoin) AppendWsOrderbookItems(entries [][4]types.Number) ([]orderbook.
        return items, nil
 }

-// CalculateChecksum alternates over the first 25 bid and ask
-// entries from websocket data. The checksum is made up of the price and the
-// quantity with a semicolon (:) deliminating them. This will also work when
-// there are less than 25 entries (for whatever reason)
-// eg Bid:Ask:Bid:Ask:Ask:Ask
-func (o *Okcoin) CalculateChecksum(orderbookData *WebsocketOrderBook) (int32, error) {
-       orderbookData.prepareOrderbook()
-       var checksum strings.Builder
-       for i := 0; i < allowableIterations; i++ {
-               if len(orderbookData.Bids)-1 >= i {
-                       checksum.WriteString(orderbookData.Bids[i][0].String() +
-                               currency.ColonDelimiter +
-                               orderbookData.Bids[i][1].String() +
-                               currency.ColonDelimiter)
-               }
-               if len(orderbookData.Asks)-1 >= i {
-                       checksum.WriteString(orderbookData.Asks[i][0].String() +
-                               currency.ColonDelimiter +
-                               orderbookData.Asks[i][1].String() +
-                               currency.ColonDelimiter)
-               }
-       }
-       checksumStr := strings.TrimSuffix(checksum.String(), currency.ColonDelimiter)
-       return int32(crc32.ChecksumIEEE([]byte(checksumStr))), nil
-}
-
 // CalculateOrderbookUpdateChecksum calculated the orderbook update checksum using currency pair full snapshot.
 func (o *Okcoin) CalculateOrderbookUpdateChecksum(orderbookData *orderbook.Base) int32 {
        var checksum strings.Builder

Please apply and test updates.

Copy link
Collaborator

@shazbert shazbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lovely tACK. Thanks Sam! 🚀

@shazbert shazbert added the szrc shazbert review complete label Jan 3, 2024
@samuael
Copy link
Contributor Author

samuael commented Jan 15, 2024

Lovely tACK. Thanks Sam! 🚀

🙏🏽🫡

Copy link

codecov bot commented Jan 15, 2024

Codecov Report

Attention: Patch coverage is 66.33166% with 67 lines in your changes are missing coverage. Please review.

Project coverage is 35.87%. Comparing base (954aa02) to head (80e9b3c).
Report is 13 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           master    #1436    +/-   ##
========================================
  Coverage   35.87%   35.87%            
========================================
  Files         411      410     -1     
  Lines      177444   177302   -142     
========================================
- Hits        63651    63611    -40     
+ Misses     106029   105942    -87     
+ Partials     7764     7749    -15     
Files Coverage Δ
exchanges/okcoin/okcoin_ratelimit.go 46.72% <100.00%> (ø)
exchanges/okcoin/okcoin_types.go 100.00% <100.00%> (+58.57%) ⬆️
exchanges/okcoin/okcoin_wrapper.go 30.33% <66.66%> (+0.40%) ⬆️
exchanges/okcoin/okcoin_ws_trade.go 0.00% <0.00%> (ø)
exchanges/okcoin/okcoin_websocket.go 39.01% <62.50%> (-1.76%) ⬇️
exchanges/okcoin/okcoin.go 15.82% <20.00%> (ø)

... and 12 files with indirect coverage changes

Copy link
Collaborator

@thrasher- thrasher- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shazbert shazbert added rebase/merge of master required and removed szrc shazbert review complete labels Feb 1, 2024
Copy link
Collaborator

@shazbert shazbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ch ACK!

@shazbert shazbert added szrc shazbert review complete and removed lint requires fixing labels Feb 19, 2024
@shazbert shazbert removed the szrc shazbert review complete label Feb 22, 2024
Copy link
Collaborator

@shazbert shazbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good just one thing I noticed when running:

[ERROR] | EXCHANGE | 22/02/2024 15:55:53 | LoadExchange Okcoin failed: failed to update tradable pairs: Okcoin unsuccessful HTTP status code: 403 raw response: {"message":"You have been denied access to the station service,Please follow the network access specification!"}

@samuael
Copy link
Contributor Author

samuael commented Feb 28, 2024

I couldn't get this error message whenever I tried. The rate limit value I used is also correct!

@thrasher- thrasher- added blocked and removed review me This pull request is ready for review high priority labels Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants