bybit-api icon indicating copy to clipboard operation
bybit-api copied to clipboard

Go library for using the Bybit's Rest & Websocket API

Results 5 bybit-api issues
Sort by recently updated
recently updated
newest added

Hello, I am getting this error when subscribing to trades via websocket: ``` 2022/09/12 19:16:34 BybitWs subscribeHandler 2022/09/12 19:16:35 BybitWs {"topic":"trade.BTCUSDT","data":[{"symbol":"BTCUSDT","tick_direction":"ZeroMinusTick","price":"22230.50","size":0.004,"timestamp":"2022-09-12T17:16:33.000Z","trade_time_ms":"1663002993247","side":"Sell","trade_id":"d6634491-3ffd-537b-8424-e800c5b36f1b","is_block_trade":"false"}]} 2022/09/12 19:16:35 BybitWs []*ws.Trade: ws.Trade.Price: readNumberAsString: invalid number, error...

I get `BybitWs Read error, closing connection: websocket: not connected` error and seems it is not handleable as the API is logging the error and not returning any error. How...

Json cant read OHLC2 struct with types float64 beacuse of Bybit returns numbers with dot. Rewrote struct, works fine ``` type OHLC2 struct { Symbol string `json:"symbol"` Interval string `json:"interval"`...

Thanks for the code to show the connection with the Bybit API. There is an issue where I don't see the example doing anything with b.Subscribe(ws.WSKLine + ".BTCUSD.1m") I gather...

Does Support Trading Bot Account Info. ? Need to get Trading Bot status and control with create / close ... etc.