poloniex_client v0.0.1 PoloniexClient.Http View Source

HTTP client to manage requests to Poloniex API methods

  • nonce uses :os.system_time
  • signed body uses sha512 from erlang crypto

Link to this section Summary

Functions

The GET request function to send to a "/path", with a given Poloniex "command" and the "params" of that command.

The POST request function to send to a "/path", with a given Poloniex "command" and the "params" of that command.

Link to this section Functions

Link to this function

get(path, command, params)

View Source

The GET request function to send to a "/path", with a given Poloniex "command" and the "params" of that command.

Examples

iex> get("/public", "returnTicker", "")
%{}
Link to this function

post(path, command, params)

View Source

The POST request function to send to a "/path", with a given Poloniex "command" and the "params" of that command.

Examples

iex> post("/tradingApi", "returnOpenOrders", [currencyPair: "USDC_BTC"])
%{}