File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -14,20 +14,20 @@ A Gem will be released shortly.
1414
1515` ib-api ` provides a simple interface to low-level TWS API-calls.
1616
17- In its plain vanilla usage, it just exchanges messages with the TWS. The User is responsible for any further data processing.
17+ In its plain vanilla usage, it just exchanges messages with the TWS. The user is responsible for any further data processing.
1818
1919
2020Even then, it needs just a few lines of code to place an order
2121
2222``` ruby
23- # connect
23+ # connect with default parameters
2424ib = IB ::Connection .new
2525
2626# define a contract to deal with
2727the_stock = IB ::Stock .new symbol: ' TAP'
2828
2929# order 100 shares for 35 $
30- limit_order = Order .new limit_price: 35 , order_type: ' LMT' , total_quantity: 100 , action: :buy
30+ limit_order = IB :: Order .new limit_price: 35 , order_type: ' LMT' , total_quantity: 100 , action: :buy
3131ib.send_message :PlaceOrder ,
3232 :order => limit_order,
3333 :contract => the_stock,
You can’t perform that action at this time.
0 commit comments