Skip to content
This repository has been archived by the owner on Nov 25, 2021. It is now read-only.

Latest commit

 

History

History
55 lines (43 loc) · 1.73 KB

README.md

File metadata and controls

55 lines (43 loc) · 1.73 KB

NOTICE: the api-connectors in this repository are out-of-date. For recommendations of alternatives, please come to our API Telegram group.

api-connectors

Libraries for connecting to the Bybit API. https://bybit-exchange.github.io/docs/inverse

Official Examples

Encryption

HTTP

Websockets

Auto-Generated Languages

Clients:

Note : The auto-generated code do not contains signature algorithm, you can refer to our example to generate the sign value. In Java SDKs, you should do like this:

ApiKeyAuth apiKey = (ApiKeyAuth)client.getAuthentication("apiKey");
ApiKeyAuth sign = (ApiKeyAuth)client.getAuthentication("apiSignature");
ApiKeyAuth timestamp = (ApiKeyAuth)client.getAuthentication("timestamp";
apiKey.setApiKey("YOUR API KEY");
timestamp.setApiKey(String.valueOf(System.currentTimeMillis()/1000));
String signature = generateSign(paramStr);
sign.setApiKey(signature);

generateSign is a method that you need to implement yourself!