Lean
$LEAN_TAG$
IndiaOrderProperties.cs
1
/*
2
* QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
3
* Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.
4
*
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
* you may not use this file except in compliance with the License.
7
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
8
*
9
* Unless required by applicable law or agreed to in writing, software
10
* distributed under the License is distributed on an "AS IS" BASIS,
11
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
* See the License for the specific language governing permissions and
13
* limitations under the License.
14
*/
15
16
using
QuantConnect
.
Interfaces
;
17
18
namespace
QuantConnect.Orders
19
{
20
/// <summary>
21
/// Contains additional properties and settings for an order submitted to Indian Brokerages
22
/// </summary>
23
public
class
IndiaOrderProperties
:
OrderProperties
24
{
25
/// <summary>
26
/// India product type
27
/// </summary>
28
public
string
ProductType
{
get
; }
29
30
/// <summary>
31
/// Define the India Order type that we are targeting (MIS/CNC/NRML).
32
/// </summary>
33
public
enum
IndiaProductType
34
{
35
/// <summary>
36
/// Margin Intraday Square Off (0)
37
/// </summary>
38
MIS,
39
40
/// <summary>
41
/// Cash and Carry (1)
42
/// </summary>
43
CNC,
44
45
/// <summary>
46
/// Normal (2)
47
/// </summary>
48
NRML
49
}
50
51
/// <summary>
52
/// Initialize a new OrderProperties for <see cref="IndiaOrderProperties"/>
53
/// </summary>
54
/// <param name="exchange">Exchange value, nse/bse etc</param>
55
public
IndiaOrderProperties
(
Exchange
exchange) : base(exchange)
56
{
57
}
58
59
/// <summary>
60
/// Initialize a new OrderProperties for <see cref="IndiaOrderProperties"/>
61
/// </summary>
62
/// <param name="exchange">Exchange value, nse/bse etc</param>
63
/// <param name="productType">ProductType value, MIS/CNC/NRML etc</param>
64
public
IndiaOrderProperties
(
Exchange
exchange,
IndiaProductType
productType) : base(exchange)
65
{
66
ProductType
= productType.ToString();
67
}
68
69
/// <summary>
70
/// Returns a new instance clone of this object
71
/// </summary>
72
public
override
IOrderProperties
Clone
()
73
{
74
return
(
IndiaOrderProperties
)MemberwiseClone();
75
}
76
}
77
}
Common
Orders
IndiaOrderProperties.cs
Generated by
1.8.17