class Binance::REST

Included Modules

Defined in:

binance/client/rest.cr

Constructors

Instance Method Summary

Instance methods inherited from module Binance::HttpMethods

public_delete(url, params : HTTP::Params) public_delete, public_get(url, params : HTTP::Params) public_get, public_post(url, params : HTTP::Params) public_post, signed_delete(url, params : HTTP::Params) signed_delete, signed_get(url, params : HTTP::Params) signed_get, signed_post(url, params : HTTP::Params) signed_post, verified_delete(url, params : HTTP::Params) verified_delete, verified_get(url, params : HTTP::Params) verified_get, verified_post(url, params : HTTP::Params) verified_post

Instance methods inherited from module Binance::Endpoints

account account, agg_trades(symbol : String, limit : Int32 = 500, from_id : Int64? = nil, start_time : Time? = nil, end_time : Time? = nil) agg_trades, all_orders(symbol : String, order_id : Int64? = nil, limit : Int32 = 500, start_time : Time? = nil, end_time : Time? = nil) all_orders, avg_price(symbol : String) avg_price, book_ticker(symbol : String? = nil) book_ticker, cancel_order(symbol : String, order_id : Int32 | Int64? = nil, client_order_id : String? = nil) cancel_order, depth(symbol : String, limit : Int32 = 5) depth, exchange_info exchange_info, get_order(symbol : String, order_id : Int32 | Int64? = nil, client_order_id : String? = nil) get_order, historical_trades(symbol : String, limit : Int32 = 500) historical_trades, klines(symbol : String, interval : String, limit : Int32 = 500, start_time : Time? = nil, end_time : Time? = nil) klines, my_trades(symbol : String, limit : Int32 = 500, from_id : Int64? = nil, start_time : Time? = nil, end_time : Time? = nil) my_trades, new_order(symbol : String, side : String, order_type : String, quantity : Float64 | String, time_in_force : String? = nil, price : Float64? = nil, client_order_id : String? = nil, stop_price : Float64? = nil, iceberg_quantity : Float64? = nil, response_type : String? = nil) new_order, new_test_order(symbol : String, side : String, order_type : String, quantity : Float64 | String, time_in_force : String? = nil, price : Float64? = nil, client_order_id : String? = nil, stop_price : Float64? = nil, iceberg_quantity : Float64? = nil, response_type : String? = nil) new_test_order, open_orders(symbol : String) open_orders, optional_param(params : HTTP::Params, key : String, value : Nil)
optional_param(params : HTTP::Params, key : String, value : String)
optional_param(params : HTTP::Params, key : String, value : Float64 | Int32 | Int64)
optional_param(params : HTTP::Params, key : String, value : Time)
optional_param
, ping ping, price(symbol : String? = nil) price, symbol_param(params : HTTP::Params, value : String?) symbol_param, time time, trades(symbol : String, limit : Int32 = 500) trades, twenty_four_hour(symbol : String? = nil) twenty_four_hour, user_data_stream user_data_stream

Constructor Detail

def self.new(api_key = "", secret_key = "", service = Binance::Service::Com) #

Instance Method Detail

def api_key : String #

def api_key=(api_key : String) #

def base_url #

def hmac(data : String) #

def secret_key : String #

def secret_key=(secret_key : String) #

def service : Service #

def service=(service : Service) #