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

Latest commit

 

History

History
134 lines (94 loc) · 4.06 KB

FundingApi.md

File metadata and controls

134 lines (94 loc) · 4.06 KB

FundingApi

All URIs are relative to https://api.bybit.com

Method HTTP request Description
fundingMyLastFee GET /open-api/funding/prev-funding Funding settlement occurs every 8 hours at 00:00 UTC, 08:00 UTC and 16:00 UTC. The current interval's fund fee settlement is based on the previous interval's fund rate. For example, at 16:00, the settlement is based on the fund rate generated at 8:00. The fund rate generated at 16:00 will be used at 0:00 on the next day.
fundingPredicted GET /open-api/funding/predicted-funding Get predicted funding rate and funding fee.
fundingPrevRate GET /open-api/funding/prev-funding-rate Get predicted funding rate and funding fee.

fundingMyLastFee

Object fundingMyLastFee(symbol)

Funding settlement occurs every 8 hours at 00:00 UTC, 08:00 UTC and 16:00 UTC. The current interval's fund fee settlement is based on the previous interval's fund rate. For example, at 16:00, the settlement is based on the fund rate generated at 8:00. The fund rate generated at 16:00 will be used at 0:00 on the next day.

Example

// Import classes:
//import io.swagger.client.api.FundingApi;

FundingApi apiInstance = new FundingApi();
String symbol = "symbol_example"; // String | Contract type.
try {
    Object result = apiInstance.fundingMyLastFee(symbol);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling FundingApi#fundingMyLastFee");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
symbol String Contract type.

Return type

Object

Authorization

apiKey, apiSignature, timestamp

HTTP request headers

  • Content-Type: application/json, application/x-www-form-urlencoded
  • Accept: application/json

fundingPredicted

Object fundingPredicted(symbol)

Get predicted funding rate and funding fee.

Example

// Import classes:
//import io.swagger.client.api.FundingApi;

FundingApi apiInstance = new FundingApi();
String symbol = "symbol_example"; // String | Contract type.
try {
    Object result = apiInstance.fundingPredicted(symbol);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling FundingApi#fundingPredicted");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
symbol String Contract type.

Return type

Object

Authorization

apiKey, apiSignature, timestamp

HTTP request headers

  • Content-Type: application/json, application/x-www-form-urlencoded
  • Accept: application/json

fundingPrevRate

Object fundingPrevRate(symbol)

Get predicted funding rate and funding fee.

Example

// Import classes:
//import io.swagger.client.api.FundingApi;

FundingApi apiInstance = new FundingApi();
String symbol = "symbol_example"; // String | Contract type.
try {
    Object result = apiInstance.fundingPrevRate(symbol);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling FundingApi#fundingPrevRate");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
symbol String Contract type.

Return type

Object

Authorization

apiKey, apiSignature, timestamp

HTTP request headers

  • Content-Type: application/json, application/x-www-form-urlencoded
  • Accept: application/json