coinrust / crex

A Golang cryptocurrency trading API & Library. Support Binance, BitMEX, Deribit, Bybit, Huobi DM, OKEX Futures and more.
MIT License
501 stars 153 forks source link

Fix DepthOrderBook.GetOrderBook #68

Closed ppd0705 closed 2 years ago

ppd0705 commented 2 years ago

// Next returns the next element based on the given node. // Next will loop around to the first node, if you call it on the last!

as the above document of SkipList.Next said, we can't use nil to determine where is the end.