Method: Bitmex::User#executions

Defined in:
lib/bitmex/user.rb

#executions(filters = {}) {|Hash| ... } ⇒ Array

Get all raw executions for your account

Parameters:

  • (defaults to: {})

    the filters to apply to mostly REST API requests with a few exceptions

Options Hash (filters):

  • :symbol (String)

    the instrument symbol, this filter works in both REST and Websocket APIs

  • :filter (String)

    generic table filter, send key/value pairs Timestamp Filters

  • :columns (String)

    array of column names to fetch; if omitted, will return all columns.

  • :count (Double) — default: 100

    number of results to fetch.

  • :start (Double)

    Starting point for results.

  • :reverse (Boolean) — default: false

    if true, will sort results newest first.

  • :startTime (Datetime, String)

    Starting date filter for results.

  • :endTime (Datetime, String)

    Ending date filter for results

Yields:

  • (Hash)

    the execution

Returns:

  • the raw transactions



122
123
124
125
126
127
128
# File 'lib/bitmex/user.rb', line 122

def executions(filters = {}, &ablock)
  if block_given?
    websocket.listen execution: filters[:symbol], &ablock
  else
    get '', filters.merge(resource: :execution)
  end
end