tn_post_bitmex: POST requests (testnet)

Description Usage Arguments Value References Examples

View source: R/general.R

Description

Use tn_post_bitmex() to send POST requests to the testnet API. All POST requests require authentication.

Usage

1

Arguments

path

string. End point for the api.

args

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

Value

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

References

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

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
# edit leverage on a position

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

## End(Not run)

bitmexr documentation built on July 1, 2020, 5:20 p.m.