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

Latest commit

 

History

History
180 lines (136 loc) · 4.3 KB

CommonApi.md

File metadata and controls

180 lines (136 loc) · 4.3 KB

IO.Swagger.Api.CommonApi

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.

CommonAnnouncements

Object CommonAnnouncements ()

Get Bybit OpenAPI announcements in the last 30 days in reverse order.

Example

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 );
            }
        }
    }
}

Parameters

This endpoint does not need any parameter.

Return type

Object

Authorization

No authorization required

HTTP request headers

  • 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]

CommonGetLcp

Object CommonGetLcp (string symbol)

Query LCP info.

Example

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 );
            }
        }
    }
}

Parameters

Name Type Description Notes
symbol string Contract type

Return type

Object

Authorization

No authorization required

HTTP request headers

  • 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]

CommonGetTime

Object CommonGetTime ()

Get bybit server time.

Example

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 );
            }
        }
    }
}

Parameters

This endpoint does not need any parameter.

Return type

Object

Authorization

No authorization required

HTTP request headers

  • 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]