Skip to content

Commit 3c5f3cb

Browse files
refactor: remove deprecated endpoints
1 parent ad0960e commit 3c5f3cb

File tree

10 files changed

+9
-237
lines changed

10 files changed

+9
-237
lines changed

CHANGELOG

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
1.2.0
2+
- Removes rest/v2 pulse functions
3+
- Fixes rest/v2 margin info functions
4+
15
1.1.0
26
- Bump dependencies for ruby 3.x
37
- Replace faraday_adapter_socks with custom class

bitfinex-rb.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
44

55
Gem::Specification.new do |spec|
66
spec.name = 'bitfinex-rb'
7-
spec.version = '1.1.0'
7+
spec.version = '1.2.0'
88
spec.authors = ['Bitfinex']
99
spec.email = ['[email protected]']
1010
spec.summary = %q{Bitfinex API Wrapper}
1111
spec.description = %q{Official Bitfinex API ruby wrapper}
1212
spec.homepage = 'https://www.bitfinex.com/'
1313
spec.license = 'MIT'
1414

15-
spec.files = Dir['lib/**/*']
15+
spec.files = Dir['lib/**/*']
1616
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
1717
spec.require_paths = ['lib']
1818

docs/events.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
* `:wallet_snapshot`
4747
* `:wallet_update`
4848
* `:balance_update`
49-
* `:marign_info_update`
49+
* `:margin_info_update`
5050
* `:funding_info_update`
5151
* `:funding_trade_entry`
5252
* `:funding_trade_update`

examples/rest/v2/pulse.rb

Lines changed: 0 additions & 47 deletions
This file was deleted.

lib/bitfinex.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,3 @@
3737
require_relative './models/trading_ticker'
3838
require_relative './models/user_info'
3939
require_relative './models/wallet'
40-
require_relative './models/pulse_profile'
41-
require_relative './models/pulse'

lib/models/pulse.rb

Lines changed: 0 additions & 37 deletions
This file was deleted.

lib/models/pulse_profile.rb

Lines changed: 0 additions & 31 deletions
This file was deleted.

lib/rest/v2.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
require_relative './v2/wallet'
1010
require_relative './v2/funding'
1111
require_relative './v2/positions'
12-
require_relative './v2/pulse'
1312

1413
module Bitfinex
1514
class RESTv2
@@ -28,7 +27,6 @@ class RESTv2
2827
include Bitfinex::RESTv2Wallet
2928
include Bitfinex::RESTv2Funding
3029
include Bitfinex::RESTv2Positions
31-
include Bitfinex::RESTv2Pulse
3230

3331
def initialize(args = {})
3432
self.api_endpoint = args[:url] ? "#{args[:url]}/v2/" : "https://api.bitfinex.com/v2/"

lib/rest/v2/margin.rb

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
11
module Bitfinex
22
module RESTv2Margin
33

4-
# Get active offers
5-
#
6-
# @example:
7-
# client.offers
8-
def offers
9-
authenticated_post("auth/r/offers").body
10-
end
11-
124
# Get account margin info
135
# - if symbol is not specified return everything
146
#
@@ -17,7 +9,7 @@ def offers
179
# @example:
1810
# client.margin_info("tBTCUSD")
1911
def margin_info(symbol = "base")
20-
authenticated_post("auth/r/margin/#{symbol}").body
12+
authenticated_post("auth/r/info/margin/#{symbol}").body
2113
end
2214

2315
# Get account funding info
@@ -27,7 +19,7 @@ def margin_info(symbol = "base")
2719
# @example:
2820
# client.funding_info
2921
def funding_info(symbol = "fUSD")
30-
authenticated_post("auth/r/funding/#{symbol}").body
22+
authenticated_post("auth/r/info/funding/#{symbol}").body
3123
end
3224
end
3325
end

lib/rest/v2/pulse.rb

Lines changed: 0 additions & 105 deletions
This file was deleted.

0 commit comments

Comments
 (0)