CryptoLoansApi | R Documentation |
binanceRapi.CryptoLoans
An R6Class
generator object
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 :
apiClient
Handles the client-server communication.
new()
CryptoLoansApi$new(apiClient)
SapiV1LoanIncomeGet()
CryptoLoansApi$SapiV1LoanIncomeGet( asset, type = NULL, start.time = NULL, end.time = NULL, limit = NULL, recv.window = NULL, ... )
SapiV1LoanIncomeGetWithHttpInfo()
CryptoLoansApi$SapiV1LoanIncomeGetWithHttpInfo( asset, type = NULL, start.time = NULL, end.time = NULL, limit = NULL, recv.window = NULL, ... )
clone()
The objects of this class are cloneable with this method.
CryptoLoansApi$clone(deep = FALSE)
deep
Whether to make a deep clone.
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.