fuly 0.0.13 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/bitfinex/api/funding.rb +3 -2
- data/lib/bitfinex/api/wallet.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4c558c970da51b2eb16e438ee1de8cd3d987ecee09ac695130056033a8abe75a
|
|
4
|
+
data.tar.gz: cf945d8b5cd75b9f9b8ee9f48b091a083a5b6ca621a1fca9a07224f3738aa14d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f7e65ba42f253bbd506c43dfda042d0918cfcf6ec8beb6bda011579b0a874abfc6f17415b7ed7e1d99467adf7d925a026b548c2ffc8650bc68f96136c33aaac2
|
|
7
|
+
data.tar.gz: 1d7f460fc6a91bbc4254b8a0646c8701d3fe518ab3b1087db2a2dbd25d57ae28dd80640c5b7c71c5e1cf313066d5702d23b14166aa4cbc037928a3517cbbfed8
|
data/lib/bitfinex/api/funding.rb
CHANGED
|
@@ -43,11 +43,12 @@ module Bitfinex
|
|
|
43
43
|
|
|
44
44
|
# 掛單
|
|
45
45
|
# https://docs.bitfinex.com/reference#submit-funding-offer
|
|
46
|
-
|
|
46
|
+
# type = LIMIT, FRRDELTAVAR, FRRDELTAFIX)
|
|
47
|
+
def funding_create_offer(currency, amount, rate, period, type = "LIMIT", is_hidden = false)
|
|
47
48
|
flag = is_hidden ? 64 : 0
|
|
48
49
|
# auth/w/funding/offer/submit
|
|
49
50
|
res = request("auth/w/funding/offer/submit", {
|
|
50
|
-
type:
|
|
51
|
+
type: type,
|
|
51
52
|
symbol: currency, #fUSD
|
|
52
53
|
amount: amount, #借款要是負的
|
|
53
54
|
rate: rate,
|
data/lib/bitfinex/api/wallet.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fuly
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.14
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Rex Chen
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-11-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: httparty
|