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.
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class CommonAnnouncementsExample
{
public void main()
{
var apiInstance = new CommonApi();
try
{
// Get Bybit OpenAPI announcements in the last 30 days in reverse order.
Object result = apiInstance.CommonAnnouncements();
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling CommonApi.CommonAnnouncements: " + e.Message );
}
}
}
}
This endpoint does not need any parameter.
Object
No authorization required
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Object CommonGetLcp (string symbol)
Query LCP info.
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class CommonGetLcpExample
{
public void main()
{
var apiInstance = new CommonApi();
var symbol = symbol_example; // string | Contract type
try
{
// Query LCP info.
Object result = apiInstance.CommonGetLcp(symbol);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling CommonApi.CommonGetLcp: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
symbol | string | Contract type |
Object
No authorization required
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Object CommonGetTime ()
Get bybit server time.
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class CommonGetTimeExample
{
public void main()
{
var apiInstance = new CommonApi();
try
{
// Get bybit server time.
Object result = apiInstance.CommonGetTime();
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling CommonApi.CommonGetTime: " + e.Message );
}
}
}
}
This endpoint does not need any parameter.
Object
No authorization required
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]