Method: Bitmex::Chat#send

Defined in:
lib/bitmex/chat.rb

#send(message, options = { channelID: 1 }) ⇒ Object

Send a chat message

Parameters:

  • message (String)

    the message to send

  • options (Hash) (defaults to: { channelID: 1 })

    filter options

Options Hash (options):

  • :channelID (Integer) — default: 1

    channel to post to



44
45
46
47
# File 'lib/bitmex/chat.rb', line 44

def send(message, options = { channelID: 1 })
  params = { message: message, channelID: options[:channelID] }
  rest.post chat_path, params: params
end