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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d7407725e60b24b5b4ff81364ea1c76500b4f88c20b993b4e8a380266627ed0d
4
- data.tar.gz: b2929541c431e86200ff03a6e3aea8204563f50a324f244b75ca8a4308597d85
3
+ metadata.gz: 4c558c970da51b2eb16e438ee1de8cd3d987ecee09ac695130056033a8abe75a
4
+ data.tar.gz: cf945d8b5cd75b9f9b8ee9f48b091a083a5b6ca621a1fca9a07224f3738aa14d
5
5
  SHA512:
6
- metadata.gz: 62eed36de6df070c6162da3fa2d26c6d6319b2f94c20b9ead542b3301f88c689cc7e428bf44dd0547822cab98530319b6b84c71a41ea0f47325e5b2837f7ac37
7
- data.tar.gz: 6e4f9eeb08058d0c0cdc49da2f5e737cecfa237100b6dae597f718b3a400649226e1cd96a66a2439b232221c2bb644c72f89d4c4e51d3acf3d450a6e825c87e9
6
+ metadata.gz: f7e65ba42f253bbd506c43dfda042d0918cfcf6ec8beb6bda011579b0a874abfc6f17415b7ed7e1d99467adf7d925a026b548c2ffc8650bc68f96136c33aaac2
7
+ data.tar.gz: 1d7f460fc6a91bbc4254b8a0646c8701d3fe518ab3b1087db2a2dbd25d57ae28dd80640c5b7c71c5e1cf313066d5702d23b14166aa4cbc037928a3517cbbfed8
@@ -43,11 +43,12 @@ module Bitfinex
43
43
 
44
44
  # 掛單
45
45
  # https://docs.bitfinex.com/reference#submit-funding-offer
46
- def funding_create_offer(currency, amount, rate, period, is_hidden = false)
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: "LIMIT",
51
+ type: type,
51
52
  symbol: currency, #fUSD
52
53
  amount: amount, #借款要是負的
53
54
  rate: rate,
@@ -44,7 +44,7 @@ module Bitfinex
44
44
  def ledgers(currency)
45
45
  res = request("auth/r/ledgers/#{currency}/hist", {
46
46
  limit: 2500,
47
- # category: 28,
47
+ category: 28,
48
48
  }).body
49
49
  return JSON.parse(res)
50
50
  end
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.13
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-05-16 00:00:00.000000000 Z
11
+ date: 2022-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty