CryptoLoansApi: CryptoLoans operations

CryptoLoansApiR Documentation

CryptoLoans operations

Description

binanceRapi.CryptoLoans

Format

An R6Class generator object

Methods

SapiV1LoanIncomeGet Get Crypto Loans Income History (USER_DATA) - If startTime and endTime are not sent, the recent 7-day data will be returned. - The max interval between startTime and endTime is 30 days. Weight(UID): 6000

  • @param asset character

  • @param type Enum < [borrowIn, collateralSpent, repayAmount, collateralReturn, addCollateral, removeCollateral, collateralReturnAfterLiquidation] >

  • @param start.time integer

  • @param end.time integer

  • @param limit integer

  • @param recv.window integer

  • @returnType list( inline_response_200_133 )

  • status code : 200 | Loan History

  • return type : array[InlineResponse200133]

  • response headers :

  • status code : 400 | Bad Request

  • return type : Error

  • response headers :

  • status code : 401 | Unauthorized Request

  • return type : Error

  • response headers :

Public fields

apiClient

Handles the client-server communication.

Methods

Public methods


Method new()

Usage
CryptoLoansApi$new(apiClient)

Method SapiV1LoanIncomeGet()

Usage
CryptoLoansApi$SapiV1LoanIncomeGet(
  asset,
  type = NULL,
  start.time = NULL,
  end.time = NULL,
  limit = NULL,
  recv.window = NULL,
  ...
)

Method SapiV1LoanIncomeGetWithHttpInfo()

Usage
CryptoLoansApi$SapiV1LoanIncomeGetWithHttpInfo(
  asset,
  type = NULL,
  start.time = NULL,
  end.time = NULL,
  limit = NULL,
  recv.window = NULL,
  ...
)

Method clone()

The objects of this class are cloneable with this method.

Usage
CryptoLoansApi$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Examples

## Not run: 
####################  SapiV1LoanIncomeGet  ####################

library(binanceRapi)
var.asset <- 'BTC' # character | 
var.type <- 'type_example' # character | All types will be returned by default. * `borrowIn` * `collateralSpent` * `repayAmount` * `collateralReturn` - Collateral return after repayment * `addCollateral` * `removeCollateral` * `collateralReturnAfterLiquidation`
var.start.time <- 56 # integer | UTC timestamp in ms
var.end.time <- 56 # integer | UTC timestamp in ms
var.limit <- 20 # integer | default 20, max 100
var.recv.window <- 5000 # integer | The value cannot be greater than 60000

#Get Crypto Loans Income History (USER_DATA)
api.instance <- CryptoLoansApi$new()

result <- api.instance$SapiV1LoanIncomeGet(var.asset, type=var.type, start.time=var.start.time, end.time=var.end.time, limit=var.limit, recv.window=var.recv.window)



## End(Not run)

grahamjwhite/binanceRapi documentation built on Nov. 22, 2022, 9:37 p.m.