class Binance::REST
- Binance::REST
- Reference
- Object
Included Modules
Defined in:
binance/client/rest.crConstructors
Instance Method Summary
- #api_key : String
- #api_key=(api_key : String)
- #base_url
- #hmac(data : String)
- #secret_key : String
- #secret_key=(secret_key : String)
- #service : Service
- #service=(service : Service)
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 = nil, start_time : Time | Nil = nil, end_time : Time | Nil = nil)
agg_trades,
all_orders(symbol : String, order_id : Int64 | Nil = nil, limit : Int32 = 500, start_time : Time | Nil = nil, end_time : Time | Nil = nil)
all_orders,
avg_price(symbol : String)
avg_price,
book_ticker(symbol : String | Nil = nil)
book_ticker,
cancel_oco_order(symbol : String, order_list_id : Int32 | Int64 | Nil = nil, list_client_order_id : String | Nil = nil, client_order_id : String | Nil = nil)
cancel_oco_order,
cancel_order(symbol : String, order_id : Int32 | Int64 | Nil = nil, client_order_id : String | Nil = nil)
cancel_order,
depth(symbol : String, limit : Int32 = 5)
depth,
exchange_info
exchange_info,
get_oco_order(order_list_id : Int32 | Int64 | Nil = nil, list_client_order_id : String | Nil = nil)
get_oco_order,
get_order(symbol : String, order_id : Int32 | Int64 | Nil = nil, client_order_id : String | Nil = nil)
get_order,
historical_trades(symbol : String, limit : Int32 = 500)
historical_trades,
klines(symbol : String, interval : String, limit : Int32 = 500, start_time : Time | Nil = nil, end_time : Time | Nil = nil)
klines,
margin_cancel_order(symbol : String, order_id : Int32 | Int64 | Nil = nil, client_order_id : String | Nil = nil, is_isolated : String | Nil = nil)
margin_cancel_order,
margin_new_order(symbol : String, side : String, order_type : String, quantity : Float64 | String, time_in_force : String | Nil = nil, price : Float64 | Nil = nil, client_order_id : String | Nil = nil, stop_price : Float64 | Nil = nil, iceberg_quantity : Float64 | Nil = nil, response_type : String | Nil = nil, is_isolated : String | Nil = nil, side_effect_type : String | Nil = nil)
margin_new_order,
my_trades(symbol : String, limit : Int32 = 500, from_id : Int64 | Nil = nil, start_time : Time | Nil = nil, end_time : Time | Nil = nil)
my_trades,
new_oco_order(symbol : String, side : String, quantity : Float64 | String, price : Float64, stop_price : Float64, stop_limit_price : Float64 | Nil = nil, stop_limit_time_in_force : String | Nil = nil, response_type : String | Nil = nil, limit_iceberg_quantity : Float64 | Nil = nil, list_client_order_id : String | Nil = nil, limit_client_order_id : String | Nil = nil, stop_client_order_id : String | Nil = nil)
new_oco_order,
new_order(symbol : String, side : String, order_type : String, quantity : Float64 | String, time_in_force : String | Nil = nil, price : Float64 | Nil = nil, client_order_id : String | Nil = nil, stop_price : Float64 | Nil = nil, iceberg_quantity : Float64 | Nil = nil, response_type : String | Nil = nil)
new_order,
new_test_order(symbol : String, side : String, order_type : String, quantity : Float64 | String, time_in_force : String | Nil = nil, price : Float64 | Nil = nil, client_order_id : String | Nil = nil, stop_price : Float64 | Nil = nil, iceberg_quantity : Float64 | Nil = nil, response_type : String | Nil = 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 = nil) price, symbol_param(params : HTTP::Params, value : String | Nil) symbol_param, time time, trades(symbol : String, limit : Int32 = 500) trades, twenty_four_hour(symbol : String | Nil = nil) twenty_four_hour, user_data_stream user_data_stream
Constructor Detail
def self.new(api_key : String = "", secret_key : String = "", service : Binance::Service = Binance::Service::Com)
#