POST analyse
Request Information
URI Parameters
None.
Body Parameters
AnalyseCodeRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| summary | Summary |
None. |
|
| trades_history | Collection of TradeHistory |
None. |
|
| trade_on_weekdays | TradeOnWeekdays |
None. |
|
| code | Code |
None. |
|
| rates | Collection of Rate |
None. |
Request Formats
application/json, text/json
Sample:
{
"summary": {
"backtest_start_date": "sample string 1",
"backtest_end_date": "sample string 2",
"total_net_profit": 3.0,
"gross_profit": 4.0,
"gross_loss": 5.0,
"total_trades": 6,
"total_buy_trades": 7,
"total_sell_Trades": 8,
"buy_trades_won": 9,
"sell_trades_won": 10,
"largest_profit_trade": 11.0,
"largest_loss_trade": 12.0,
"minimal_holding_time": "sample string 13",
"maximal_holding_time": "sample string 14"
},
"trades_history": [
{
"orderId": "sample string 1",
"symbolId": 2,
"orderType": "sample string 3",
"entryTime": 4,
"exitTime": 5,
"qty": 6,
"entryPrice": 7.0,
"exitPrice": 8.0,
"stopLoss": 9.0,
"takeProfit": 10.0,
"commission": 11.0,
"profitAndLoss": 12.0
},
{
"orderId": "sample string 1",
"symbolId": 2,
"orderType": "sample string 3",
"entryTime": 4,
"exitTime": 5,
"qty": 6,
"entryPrice": 7.0,
"exitPrice": 8.0,
"stopLoss": 9.0,
"takeProfit": 10.0,
"commission": 11.0,
"profitAndLoss": 12.0
}
],
"trade_on_weekdays": {
"Sunday": {
"profit": 1.0,
"loss": 2.0
},
"Monday": {
"profit": 1.0,
"loss": 2.0
},
"Tuesday": {
"profit": 1.0,
"loss": 2.0
},
"Wednesday": {
"profit": 1.0,
"loss": 2.0
},
"Thursday": {
"profit": 1.0,
"loss": 2.0
},
"Friday": {
"profit": 1.0,
"loss": 2.0
},
"Saturday": {
"profit": 1.0,
"loss": 2.0
}
},
"code": {
"CodingScript": "sample string 1"
},
"rates": [
{
"time": 1,
"open": 2.0,
"high": 3.0,
"low": 4.0,
"close": 5.0,
"volume": 6,
"OI": 7
},
{
"time": 1,
"open": 2.0,
"high": 3.0,
"low": 4.0,
"close": 5.0,
"volume": 6,
"OI": 7
}
]
}
application/xml, text/xml
Sample:
<AnalyseCodeRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SutraLipiAPI.Models">
<code>
<CodingScript>sample string 1</CodingScript>
</code>
<rates>
<Rate>
<OI>7</OI>
<close>5</close>
<high>3</high>
<low>4</low>
<open>2</open>
<time>1</time>
<volume>6</volume>
</Rate>
<Rate>
<OI>7</OI>
<close>5</close>
<high>3</high>
<low>4</low>
<open>2</open>
<time>1</time>
<volume>6</volume>
</Rate>
</rates>
<summary>
<backtest_end_date>sample string 2</backtest_end_date>
<backtest_start_date>sample string 1</backtest_start_date>
<buy_trades_won>9</buy_trades_won>
<gross_loss>5</gross_loss>
<gross_profit>4</gross_profit>
<largest_loss_trade>12</largest_loss_trade>
<largest_profit_trade>11</largest_profit_trade>
<maximal_holding_time>sample string 14</maximal_holding_time>
<minimal_holding_time>sample string 13</minimal_holding_time>
<sell_trades_won>10</sell_trades_won>
<total_buy_trades>7</total_buy_trades>
<total_net_profit>3</total_net_profit>
<total_sell_Trades>8</total_sell_Trades>
<total_trades>6</total_trades>
</summary>
<trade_on_weekdays>
<Friday>
<loss>2</loss>
<profit>1</profit>
</Friday>
<Monday>
<loss>2</loss>
<profit>1</profit>
</Monday>
<Saturday>
<loss>2</loss>
<profit>1</profit>
</Saturday>
<Sunday>
<loss>2</loss>
<profit>1</profit>
</Sunday>
<Thursday>
<loss>2</loss>
<profit>1</profit>
</Thursday>
<Tuesday>
<loss>2</loss>
<profit>1</profit>
</Tuesday>
<Wednesday>
<loss>2</loss>
<profit>1</profit>
</Wednesday>
</trade_on_weekdays>
<trades_history>
<TradeHistory>
<commission>11</commission>
<entryPrice>7</entryPrice>
<entryTime>4</entryTime>
<exitPrice>8</exitPrice>
<exitTime>5</exitTime>
<orderId>sample string 1</orderId>
<orderType>sample string 3</orderType>
<profitAndLoss>12</profitAndLoss>
<qty>6</qty>
<stopLoss>9</stopLoss>
<symbolId>2</symbolId>
<takeProfit>10</takeProfit>
</TradeHistory>
<TradeHistory>
<commission>11</commission>
<entryPrice>7</entryPrice>
<entryTime>4</entryTime>
<exitPrice>8</exitPrice>
<exitTime>5</exitTime>
<orderId>sample string 1</orderId>
<orderType>sample string 3</orderType>
<profitAndLoss>12</profitAndLoss>
<qty>6</qty>
<stopLoss>9</stopLoss>
<symbolId>2</symbolId>
<takeProfit>10</takeProfit>
</TradeHistory>
</trades_history>
</AnalyseCodeRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.