fuly 0.0.10 → 0.0.11

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b43c1ec760e981a67837a2686b0a2cc1dbfe89dfe9afbbab043b3bce71b011b3
4
- data.tar.gz: 5267452710937aa867cf17b06811a0dc98641c9d1c4ad26c1ed8cf6a14a77169
3
+ metadata.gz: 92859075380edc52537e8e91530ccc60fd14f08c1538d033eff774f6bfacc6a7
4
+ data.tar.gz: ac806bd329b0104ba255bca89e7a4231af78f6265aff2d11c196a094d5d966ef
5
5
  SHA512:
6
- metadata.gz: 22fc294cb5064f3f2508cccbb4caac5c35326fbb5bd1cad4bfe0f29f45c23fdf38fe2ade73461f3c3001799df13405b8dd3df6f32c8bc20d8edf618e569a9ac3
7
- data.tar.gz: d7be5eb4bce216ae314e1d6f9ba43b108860fbde4d364e7e5e663700cdd66f7613a23a8fe09e96dbd9641ff2aa6b55da92ab9a4ca894b08eaacba0c5e7bf1da8
6
+ metadata.gz: 93f433e01c4db76aa3ac99f152e3ddc4e84bf647cf1bc6e2df3a57505d8184f538f3af276a830e2532a262c8e9202f2feee5d570cbc87520acdca5e1af9c9a55
7
+ data.tar.gz: 771cfb7573ca910d2017ccf9717c655f8c81809bfbdd2251993e3ca5e4739112baab5f09400b228cd56aad69f567bb7ce0ee18149a26c3eab4ab2eaed6dee6ec
@@ -45,14 +45,16 @@ module Bitfinex
45
45
  # https://docs.bitfinex.com/reference#submit-funding-offer
46
46
  def funding_create_offer(currency, amount, rate, period)
47
47
  # auth/w/funding/offer/submit
48
- request("auth/w/funding/offer/submit", {
48
+ res = request("auth/w/funding/offer/submit", {
49
49
  type: "LIMIT",
50
50
  symbol: currency, #fUSD
51
51
  amount: amount, #借款要是負的
52
52
  rate: rate,
53
53
  period: period,
54
- flags: 0,
54
+ flags: 64,
55
55
  }).body
56
+ res = JSON.parse(res)
57
+ return res
56
58
  end
57
59
 
58
60
  # https://docs.bitfinex.com/v1/reference#rest-auth-offers
@@ -1,30 +1,5 @@
1
1
  module Bitfinex
2
2
  module Wallet
3
- # Ratelimit: 90 req/min
4
- # https://docs.bitfinex.com/reference#rest-auth-info-user
5
- def user_info
6
- res = request("auth/r/info/user").body
7
- return JSON.parse(res)
8
- end
9
-
10
- # Ratelimit: 90 req/min
11
- # https://docs.bitfinex.com/reference#key-permissions
12
- def permissions
13
- res = request("auth/r/permissions").body
14
- return JSON.parse(res)
15
- end
16
-
17
- # https://docs.bitfinex.com/reference#rest-auth-withdraw
18
- def withdraw(wallet, method, amount, address)
19
- res = request("auth/w/withdraw", {
20
- wallet: wallet,#'exchange',
21
- method: method,#'tetheruse',
22
- amount: amount,#'10',
23
- address: address#'0x2bf788d017C4DF927787DF2EB1310266d9db6893',
24
- }).body
25
- return JSON.parse(res)
26
- end
27
-
28
3
  # Ratelimit: 45 req/min
29
4
  # https://docs.bitfinex.com/reference#rest-auth-movements
30
5
  def movements
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.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rex Chen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-11 00:00:00.000000000 Z
11
+ date: 2022-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty