Learn R Programming

bitmexr (version 0.3.3)

post_bitmex: POST requests

Description

Use post_bitmex() to send POST requests. All POST requests require authentication.

Usage

post_bitmex(path, args = NULL)

Value

Returns a data.frame containing the response from the request.

Arguments

path

string. End point for the api.

args

A named list containing valid parameters for the given API endpoint.

References

https://www.bitmex.com/api/explorer/

Examples

Run this code
if (FALSE) {
# edit leverage on a position

post_bitmex(
  path = "/position/leverage",
  args = list("symbol" = "XBTUSD", "leverage" = 10)
)
}

Run the code above in your browser using DataLab