Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Message DirectionFormatBodyAdditional info (possible values)
RequestJSON
{
  • "securityKey":"AAPL",
  • "ticket":"837590...CE4E",
  • "end":1442246045,
  • "interval":-5,
  • "period":-3,
  • "start":1441641245
}

securitySignature:

  see Etna.Trading.Security.SecurityManager.GetSecuritySignature

unixStartTime and unixEndTime: time interval in Unix format

period - candle period, basically # of sec. but allows negative vals

interval - history interval, basically # of sec. but allows negative vals

 

Intervals:

-1, all available
-4, 1 day
-12, 3 days (mobile client thinks that -11)
-5, 1 week
-6, 1 month
-7, 3 months
-8, 6 months
-2, year to date
-9, 1 year
-10, 3 years

-3 custom

 

Periods:

-1, 1 minute
-2, 5 minutes
-3, 15 minutes
-4, 30 minutes
-5, 1 hour
-6, 1 day
-7, 1 week
-8, 1 month
-9, 1 quarter (3 months)
-10, half a year (6 months)
-11, 1 year

ResponseJSON
{
  • "ResponseCode":0,
  • "Result":[
    • {
      • "DateTime":"\/Date(1441719000000+0000)\/",
      • "IsMarket":true,
      • "OpenInterest":0,
      • "Time":1441719000,
      • "Volume":5608911,
      • "Close":112.522600,
      • "High":112.550000,
      • "Low":109.270000,
      • "Open":109.270000
      }
    ]
}
 

...