Skip to content
This repository has been archived by the owner on Feb 23, 2022. It is now read-only.

Add create OCO #41

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/binance/client/rest/endpoints.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class REST
all_orders: 'v3/allOrders',
account: 'v3/account',
my_trades: 'v3/myTrades',
oco: 'v3/order/oco',
user_data_stream: 'v1/userDataStream',

# Withdraw API Endpoints
Expand Down
3 changes: 3 additions & 0 deletions lib/binance/client/rest/methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ class REST
# #all_orders
{ name: :all_orders, client: :signed,
action: :get, endpoint: :all_orders },
#create_oco!
{ name: :create_oco!, client: :signed,
action: :post, endpoint: :oco },
# #account_info
{ name: :account_info, client: :signed,
action: :get, endpoint: :account },
Expand Down