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 +4 -4
- data/lib/bitfinex/orders.rb +3 -1
- data/lib/bitfinex/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 702d9d34912e0ee7b096f04362648df2ee029a59
|
4
|
+
data.tar.gz: e92c0cf287624859891149a9609683008a3af019
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ddc4503e90815ee6b1cf4b0aa13357bc1fa6ecee170d39084dabc21688d0123f8e22957e625b6f2322dbaa2515054a6a810715013fa44c9927f92c51fec7f696
|
7
|
+
data.tar.gz: 7363424ea59fac15f523569d1f7f3e6045d05ba4b78316ff19386bbd17c2bf7060c0c081448370484807b8a6b61d6ce16ca03de32e7e2e4009cd726583b07505
|
data/lib/bitfinex/orders.rb
CHANGED
@@ -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
|
data/lib/bitfinex/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2016-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|