bitfinex-rb 0.0.6 → 0.0.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: 20394641fe58898e7fa5501718f59ecec7e5a431
4
- data.tar.gz: 49a23548584876b2b6d6970c1ce5336b9beb6648
3
+ metadata.gz: 702d9d34912e0ee7b096f04362648df2ee029a59
4
+ data.tar.gz: e92c0cf287624859891149a9609683008a3af019
5
5
  SHA512:
6
- metadata.gz: 7f5e35855f8157c774498ab745ed8742371ace95c55bbbbb72733c6a846128fca0837aaee8020bf2306f91d59948c0540d41ce39e6f47bcf2c8b4211e0e00611
7
- data.tar.gz: 340a63e8b1b9140b5d209dcadff434bbfc9c2f4cb604f3923305951dd5c61563841c6a334e890fa4592273fb3b27603b18f9d476f747de2c4caf591f393b4427
6
+ metadata.gz: ddc4503e90815ee6b1cf4b0aa13357bc1fa6ecee170d39084dabc21688d0123f8e22957e625b6f2322dbaa2515054a6a810715013fa44c9927f92c51fec7f696
7
+ data.tar.gz: 7363424ea59fac15f523569d1f7f3e6045d05ba4b78316ff19386bbd17c2bf7060c0c081448370484807b8a6b61d6ce16ca03de32e7e2e4009cd726583b07505
@@ -79,10 +79,11 @@ module Bitfinex
79
79
  # @param side [string] Either “buy” or “sell”
80
80
  # @param price [decimal] Price to buy or sell at. May omit if a market order
81
81
  # @param is_hidden [bool] (optional) true if the order should be hidden. Default is false
82
+ # @param use_remaining [bool] (optional) will use the amount remaining of the canceled order as the amount of the new order. Default is false
82
83
  # @return [Hash] the order
83
84
  # @example:
84
85
  # client.replace_order(100,"usdbtc", 10, "market", "buy", 0)
85
- def replace_order(id, symbol, amount, type, side, price, is_hidden=false)
86
+ def replace_order(id, symbol, amount, type, side, price, is_hidden=false, use_remaining=false)
86
87
  params = {
87
88
  order_id: id.to_i,
88
89
  symbol: symbol,
@@ -91,6 +92,7 @@ module Bitfinex
91
92
  side: side,
92
93
  exchange: 'bitfinex',
93
94
  is_hidden: is_hidden,
95
+ use_remaining: use_remaining,
94
96
  price: price.to_s
95
97
  }
96
98
  authenticated_post("order/cancel/replace", params: params).body
@@ -1,3 +1,3 @@
1
1
  module Bitfinex
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bitfinex-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bitfinex
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-05 00:00:00.000000000 Z
11
+ date: 2016-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday