restAPIaccount {okxAPI}R Documentation

restAPIaccount Class

Description

Wrapper for REST API ACCOUNT.

Super class

okxAPI::restAPI -> restAPIaccount

Methods

Public methods

Inherited methods

Method balance()

See Get balance for more information.

Usage
restAPIaccount$balance(ccy, process = "identity")
Arguments
ccy

Single currency or a vector composed of multiple currencies. (no more than 20).

process

A function to process the data received from the API. Default to identity.


Method positions()

See Get positions for more information.

Usage
restAPIaccount$positions(process = "identity", ...)
Arguments
process

A function to process the data received from the API. Default to identity.

...

Other request parameters.


Method positions_history()

See Get positions history for more information.

Usage
restAPIaccount$positions_history(process = "identity", ...)
Arguments
process

A function to process the data received from the API. Default to identity.

...

Other request parameters.


Method clone()

The objects of this class are cloneable with this method.

Usage
restAPIaccount$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


[Package okxAPI version 0.1.1 Index]