All URIs are relative to https://api.bybit.com
Method | HTTP request | Description |
---|---|---|
commonAnnouncements | GET /v2/public/announcement | Get Bybit OpenAPI announcements in the last 30 days in reverse order. |
commonGetLcp | GET /v2/private/account/lcp | Query LCP info. |
commonGetTime | GET /v2/public/time | Get bybit server time. |
Object commonAnnouncements()
Get Bybit OpenAPI announcements in the last 30 days in reverse order.
var BybitApi = require('bybit_api');
var apiInstance = new BybitApi.CommonApi();
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.commonAnnouncements(callback);
This endpoint does not need any parameter.
Object
No authorization required
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json
Object commonGetLcp(symbol)
Query LCP info.
var BybitApi = require('bybit_api');
var apiInstance = new BybitApi.CommonApi();
var symbol = "symbol_example"; // String | Contract type
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.commonGetLcp(symbol, callback);
Name | Type | Description | Notes |
---|---|---|---|
symbol | String | Contract type |
Object
No authorization required
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json
Object commonGetTime()
Get bybit server time.
var BybitApi = require('bybit_api');
var apiInstance = new BybitApi.CommonApi();
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.commonGetTime(callback);
This endpoint does not need any parameter.
Object
No authorization required
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json