POST V2/Mongo/UpdateStrategy
Request Information
URI Parameters
None.
Body Parameters
StrategySpec| Name | Description | Type | Additional information |
|---|---|---|---|
| _id | string |
None. |
|
| strategyId | string |
None. |
|
| action | string |
None. |
|
| useBoardLot | boolean |
None. |
|
| stoplossEnabled | boolean |
None. |
|
| stoplossPcent | integer |
None. |
|
| maxAllocPcent | integer |
None. |
|
| maxDailyLots | integer |
None. |
|
| lotsPerTrade | integer |
None. |
|
| minInterval | integer |
None. |
|
| productListId | string |
None. |
|
| productSelection | Collection of string |
None. |
|
| ProductList | Collection of ProductItem |
None. |
|
| entryTradeCondition | Collection of EntryTrade |
None. |
|
| exitTradeCondition | Collection of EntryTrade |
None. |
|
| evaluateInterval | integer |
None. |
|
| orderEnabled | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"_id": "sample string 1",
"strategyId": "sample string 2",
"action": "sample string 3",
"useBoardLot": true,
"stoplossEnabled": true,
"stoplossPcent": 6,
"maxAllocPcent": 7,
"maxDailyLots": 8,
"lotsPerTrade": 9,
"minInterval": 10,
"productListId": "sample string 11",
"productSelection": [
"sample string 1",
"sample string 2"
],
"ProductList": [
{
"Included": true,
"Code": "sample string 2",
"Exchange": "sample string 3"
},
{
"Included": true,
"Code": "sample string 2",
"Exchange": "sample string 3"
}
],
"entryTradeCondition": [
{
"logicalOp": "sample string 1",
"timeframe": "sample string 2",
"indicatorId": "sample string 3",
"comparison": "sample string 4",
"operand1": "sample string 5",
"operand2": "sample string 6"
},
{
"logicalOp": "sample string 1",
"timeframe": "sample string 2",
"indicatorId": "sample string 3",
"comparison": "sample string 4",
"operand1": "sample string 5",
"operand2": "sample string 6"
}
],
"exitTradeCondition": [
{
"logicalOp": "sample string 1",
"timeframe": "sample string 2",
"indicatorId": "sample string 3",
"comparison": "sample string 4",
"operand1": "sample string 5",
"operand2": "sample string 6"
},
{
"logicalOp": "sample string 1",
"timeframe": "sample string 2",
"indicatorId": "sample string 3",
"comparison": "sample string 4",
"operand1": "sample string 5",
"operand2": "sample string 6"
}
],
"evaluateInterval": 12,
"orderEnabled": true
}
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
SystemResult| Name | Description | Type | Additional information |
|---|---|---|---|
| Succeeded | boolean |
None. |
|
| Message | string |
None. |
|
| ReturnValue | Object |
None. |
|
| Code | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"Succeeded": true,
"Message": "sample string 2",
"ReturnValue": {},
"Code": 4
}