ig_markets 0.29 → 0.30

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: 187077cf0cdb9a078657a52a828e246bf7dcfe66
4
- data.tar.gz: 1ce4e0be008ef0d432257ecc126ff0637b76bb89
3
+ metadata.gz: 7f3dac7d0fc4292623c5cecde02665bf51d88964
4
+ data.tar.gz: 1e02ad232416b6f07a32cb235008c29893bc0052
5
5
  SHA512:
6
- metadata.gz: 4e50a5d55b0b8215a2c03e00f57424c61b0bddb04a8dc46558dd1fdc36a08b1335f0b8d37219bea25fdc8e0a5ca17822135ba3119718461ad0e0b84116c482d8
7
- data.tar.gz: e509ac730be8ba25036a347649ebf059148f451405c77125a728de390acdbf30393c3d7ab0dc341f84837bff2adf8185568eb22d50623e74b75ba19e6abbf7e4
6
+ metadata.gz: a3e5fd9d9cfafa9c3c6b2aa2480d11b350a39e2b1bc0d62bfbf475801c2ffc379ef02316a5f3574fb01a483c6ab6768e0ff58f79199aa30b333b1faf19476302
7
+ data.tar.gz: 78acd317c9389cd9e990b450afc78343d5b0d4948eaa9c2d726f2ab31b47141e535c649f0bda3e5b59705bb0cabf74a5ecf2e04f699ae0f711dc3fee5e5c545e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # IG Markets Changelog
2
2
 
3
+ ### 0.30 — March 10, 2017
4
+
5
+ - Fixed `ig_markets self-test` command
6
+ - Support the `chart` transaction type
7
+
3
8
  ### 0.29 — March 8, 2017
4
9
 
5
10
  - The `IGMarkets::AccountMethods#activities` and `IGMarkets::AccountMethods#transactions` now take `Time`
@@ -9,7 +14,7 @@
9
14
  - Fixed `IGMarkets::AccountMethods#activities` and `IGMarkets::AccountMethods#transactions` never returning
10
15
  if there were more than 500 activities or transactions in a single day during the specified period
11
16
  - Added `IGMarkets::Position#limited_risk_premium` and `IGMarkets::WorkingOrder#limited_risk_premium`
12
- - Supprt the `chart` transaction type
17
+ - Support the `chart` transaction type
13
18
 
14
19
  ### 0.28 — February 24, 2017
15
20
 
@@ -115,8 +115,8 @@ module IGMarkets
115
115
 
116
116
  def test_account_methods
117
117
  @dealing_platform.account.all
118
- @dealing_platform.account.activities from: Date.today - 14
119
- @dealing_platform.account.transactions from: Date.today - 14
118
+ @dealing_platform.account.activities from: Time.now - 14
119
+ @dealing_platform.account.transactions from: Time.now - 14
120
120
  end
121
121
 
122
122
  def test_client_sentiment
@@ -36,7 +36,7 @@ module IGMarkets
36
36
 
37
37
  def formatted_type(type)
38
38
  { chart: 'Chart', deal: 'Deal', depo: 'Deposit', dividend: 'Dividend', exchange: 'Exchange',
39
- with: 'Withdrawal' }.fetch type
39
+ trade: 'Trade', with: 'Withdrawal' }.fetch type
40
40
  end
41
41
  end
42
42
  end
@@ -13,7 +13,7 @@ module IGMarkets
13
13
  attribute :profit_and_loss
14
14
  attribute :reference
15
15
  attribute :size, String, nil_if: '-'
16
- attribute :transaction_type, Symbol, allowed_values: [:chart, :deal, :depo, :dividend, :exchange, :with]
16
+ attribute :transaction_type, Symbol, allowed_values: [:chart, :deal, :depo, :dividend, :exchange, :trade, :with]
17
17
 
18
18
  deprecated_attribute :date
19
19
 
@@ -1,4 +1,4 @@
1
1
  module IGMarkets
2
2
  # The version of this gem.
3
- VERSION = '0.29'.freeze
3
+ VERSION = '0.30'.freeze
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ig_markets
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.29'
4
+ version: '0.30'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Viney
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-08 00:00:00.000000000 Z
11
+ date: 2017-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize