
使用
Oanda
进行
CFD
交易
|
259
8.5
下订单
同样,使用
create_order()
方法进行买入和卖出订单也很简单。
In [20]: help(api.create_order)
Help on method create_order in module tpqoa.tpqoa:
create_order(instrument, units, price=None, sl_distance=None,
tsl_distance=None, tp_price=None, comment=None, touch=False,
suppress=False, ret=False) method of tpqoa.tpqoa.tpqoa instance
Places order with Oanda.
Parameters
==========
instrument: string
valid instrument name
units: int
number of units of instrument to be bought
(positive int, e.g., 'units=50')
or to be sold (negative int, e.g., ...