submit_market_order
Description
Enterprise users only.
Submits a market order.
Simple Example
o={'api_key' : api_key,
'experiment_id':'exptest1',
'purchase_date' :datetime.datetime.utcnow(),
'bottom_sell' :1.0,
'time_sell' :datetime.datetime.utcnow() + datetime.timedelta(minutes=10),
'high_sell' :1000.0,
'target_price' :15.0,
'security' :'KO',
'tag' :"OrderTest2",
'amount':10.0,
}
dat = pq.submit_market_order(o,remote=True)
Simple Example Output
{'experiment_id': 'exptest1', 'high_sell': 1000.0, 'bottom_sell': 1.0, 'order_id': '7a0e5202-1b2b-439f-87f5-ba3c0e5bd91d', 'amount': 10.0, 'sharesAmount': 10.0, 'security': 'KO', 'time_sell': '2019-12-03T18:24:03.250246', 'last_price': 15.0, 'purchase_date': '2019-12-03T18:14:03.250244', 'tag': 'OrderTest2', 'submitting_process': '2768', '_id': None}