Sha256: 94b163ac56b9825515ca2b8b7047f6ec0e13ab13cd46328e8494e7edb70e4790
Contents?: true
Size: 954 Bytes
Versions: 32
Compression:
Stored size: 954 Bytes
Contents
module RbtcArbitrage module Clients class ExchangeClient include RbtcArbitrage::Client # return a symbol as the name # of this exchange def exchange end # Returns an array of Floats. # The first element is the balance in BTC; # The second is in USD. def balance end def interface end # Configures the client's API keys. def validate_env end # `action` is :buy or :sell def trade action end # `action` is :buy or :sell # Returns a Numeric type. def price action end # Transfers BTC to the address of a different # exchange. def transfer client end # If there is an API method to fetch your # BTC address, implement this, otherwise # remove this method and set the ENV # variable [this-exchange-name-in-caps]_ADDRESS def address end end end end
Version data entries
32 entries across 32 versions & 2 rubygems