Commit Graph

21 Commits

Author SHA1 Message Date
Stefano Raggi 7a76b07174 Post review updates
- removed TimeInForceType enum
- updated comments in InteractiveBrokersBrokerage.ParseExpiryDateTime
- removed equality methods and operators from TimeInForce class
- fixed TimeInForce JSON serialization/deserialization with custom converter
2018-05-30 10:00:13 +02:00
Stefano Raggi 4406332046 Make TimeInForce class abstract 2018-05-30 10:00:11 +02:00
Stefano Raggi 9ae346b251 Refactor TimeInForce enum to class 2018-05-30 10:00:10 +02:00
Stefano Raggi 2d19ab7ead Review TimeInForce handler interface
- removed IAlgorithm dependency from time in force handlers
- renamed GoodTilCancelled to GoodTilCanceled
- added GTC time in force in regression algorithms
- inlined initialization of time in force handler dictionary
2018-05-01 20:53:43 +02:00
Stefano Raggi 8367b6ba36 Add TimeInForce.Day support to IB brokerage 2018-04-30 09:28:03 +02:00
Stefano Raggi 3a829a856b Added GTC alias for GoodTilCancelled 2018-04-25 22:52:42 +02:00
Stefano Raggi 464b4799c9 Rename GTC to GoodTilCancelled 2018-04-25 11:21:40 +02:00
Stefano Raggi 6dae9d0fc9 Rename OrderDuration to TimeInForce
"Time In Force" is the standard term used in trading platforms and APIs.
2018-04-25 10:57:28 +02:00
Jared d5cc022867 Merge pull request #675 from QuantConnect/master
Merge with master
2017-01-05 12:12:40 -05:00
Stefano Raggi 59bd3238a4 Move OrderStatus.CancelPending enum value to the bottom 2017-01-02 21:43:37 +01:00
Stefano Raggi 23d7812804 Add new CancelPending order status
This new status is being added to solve the following problem with order cancellations:

Working orders (limit or stop) are usually cancelled by calling the OrderTicket.Cancel() method. This method is asynchronous in both backtesting and live, so reading the OrderStatus immediately after the Cancel call, can result in different values seen over different runs.

The solution introduces a new CancelPending value to the OrderStatus enum and guarantees that the order will have this status when the Cancel method returns (unless there was an error earlier, such as invalid order id). This status is meant to be temporary and will be overwritten/replaced by the Canceled value after the brokerage has completed the cancel operation.
2017-01-02 21:00:35 +01:00
quant1729 2dce74e26d - Extended Option security and Option holding classes
- Updated IB fee model to support option exercise
- Added support for splits for options. Not tested on real data yet.
- Added option exercise functionality for long positions. Unit Tests. Not tested on real data yet.
- Added option assignment functionality for short positions. Assignment event. Unit Tests.
- Added basic option assignment simulator for backtesting brokerage. Simulates assignments for deep ITM short positions close to expiration. Unit Tests.
2016-08-31 18:00:00 +02:00
David Hsieh 78e12d7fe7 Initial implementation of OandaBrokerage 2015-10-23 15:06:46 -04:00
snugs 08c8cbffbb Fixes bug in OrderEvent.Direction 2015-08-31 13:44:16 -04:00
snugs 6bc9c5a7fb Fixes bug related to new time zone feature
RealTimeSynchronizedTimer now triggers based on UTC time
LiveTradingDataFeed used UTC time to add to bridge
Renamed Security.Time to Security.LocalTime to be explicit
Renamed SecurityExchange.Time to SecurityExchange.LocalTime to be explicit
2015-07-09 16:14:19 -04:00
snugs 704bfc2298 Adds new order ticket system
QCAlgorithm order functions now return an OrderTicket

OrderTicket can be used to directly update or cancel an order

Placing an order now submits an OrderRequest which is processed by the ITransactionHandler
2015-07-08 23:40:28 -04:00
snugs 099cee9b3f Implements MarketOnOpen and MarketOnClose order types 2015-05-26 19:20:05 -04:00
snugs 89b6e98af8 Fixes warnings mostly relating to xml comments
Also cleans up some block comments

Via PR#72 - thanks @ammachado!
2015-05-13 10:56:47 -04:00
Adriano Marcondes Machado b2229e8968 Fixed a few compilation warnings 2015-03-09 16:28:17 -03:00
QuantConnect 0ec03f4b7b Added order type to order enum 2015-02-27 18:10:21 -03:00
QuantConnect f2c1a1e94c Split out order type enums and order errors list into dedicated files 2015-02-23 14:53:02 -03:00