qc 0.6.6 → 0.6.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 44ffb4200efc895ee538c1a4b67ff8802db99daf
4
- data.tar.gz: ab800cad8fb56526347d386f5a86f07dab359de1
3
+ metadata.gz: 29d8b0648960469c051e8b5302372ff5c3f9ec2f
4
+ data.tar.gz: 1f2290108ae48d44183cb2126dd2d2fc99aaab73
5
5
  SHA512:
6
- metadata.gz: 42931cd82b9d0b590d46b0ba745f0db10f1dabb56edfd543895c18ba20275945745e99c345d53aa4ba184f5badaf2420a06ffef5818585a9884f7e6315cbc586
7
- data.tar.gz: ccffcfaab2f6330e262a55a1c46c530ed570fb8a464ce8c33b3620e170690f67136668cd58d2219954e63f669c3f126c7c21cdc54db17000b899d4a6a6d3eac7
6
+ metadata.gz: e26d0097989e5c3ada083ba05c98705ad24b12953baac228cc70cf28e30f5a1f66f69554075ca5a1ba2b53624bd63a8f1fef67f2eb592326340b303f08abb2dc
7
+ data.tar.gz: 1e777ae5e72eb3e275f84794ce3a3dcd204086d79d826b05d57dc22c12f901182c7e644da48d0ddc4ee148fc9b2a51694db54aecaacd8aeb714342d441db0caa
@@ -15,6 +15,11 @@
15
15
  - Better labeling for backtests. Intead of using the long id, it will use `<project folder name>-<counter>` now.
16
16
  - Add support for importing trades into Tradervue
17
17
 
18
+ ## 6.0.7
19
+
20
+ - Fix: Wrong offset in times imported to Tradervue
21
+
22
+
18
23
 
19
24
 
20
25
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- qc (0.6.6)
4
+ qc (0.6.7)
5
5
  httparty (~> 0.15.6)
6
6
  rest-client (~> 2.0.2)
7
7
  vcr (~> 3.0.3)
@@ -20,7 +20,7 @@ GEM
20
20
  hashdiff (0.3.7)
21
21
  http-cookie (1.0.3)
22
22
  domain_name (~> 0.5)
23
- httparty (0.15.6)
23
+ httparty (0.15.7)
24
24
  multi_xml (>= 0.5.2)
25
25
  mime-types (3.1)
26
26
  mime-types-data (~> 3.2015)
@@ -39,7 +39,7 @@ GEM
39
39
  unf_ext
40
40
  unf_ext (0.0.7.4)
41
41
  vcr (3.0.3)
42
- webmock (3.1.1)
42
+ webmock (3.1.0)
43
43
  addressable (>= 2.3.6)
44
44
  crack (>= 0.3.2)
45
45
  hashdiff
@@ -55,4 +55,4 @@ DEPENDENCIES
55
55
  rake (~> 10.0)
56
56
 
57
57
  BUNDLED WITH
58
- 1.15.4
58
+ 1.16.1
@@ -1,3 +1,5 @@
1
+ require 'date'
2
+
1
3
  module Qc
2
4
  class CommandRunner
3
5
  DEFAULT_FILE_EXTENSIONS = 'cs,py'
@@ -345,7 +347,7 @@ module Qc
345
347
  orders = backtest.result['Orders'].values
346
348
  orders_as_tradervue_executions = orders.collect do |order|
347
349
  {
348
- "datetime" => order['Time'],
350
+ "datetime" => in_est_timezone(order),
349
351
  "symbol" => order['Symbol']['Value'],
350
352
  "quantity" => order['Quantity'],
351
353
  "price" => order['Price'],
@@ -362,6 +364,11 @@ module Qc
362
364
  open_results_in_tradervue(backtest)
363
365
  end
364
366
 
367
+ def in_est_timezone(order)
368
+ time = DateTime.parse order['Time']
369
+ time.to_time.utc.localtime("-05:00")
370
+ end
371
+
365
372
  def open_results_in_tradervue(backtest)
366
373
  return false unless validate_on_mac!
367
374
 
@@ -1,3 +1,3 @@
1
1
  module Qc
2
- VERSION = "0.6.6"
2
+ VERSION = "0.6.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.6
4
+ version: 0.6.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jorge Manrubia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-26 00:00:00.000000000 Z
11
+ date: 2018-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client