Skip to content

Commit f51079d

Browse files
authored
Merge pull request #109 from Thomas-Heniart/refactor/remove-deprecated-endpoints
refactor: remove deprecated endpoints
2 parents ad0960e + 2750d60 commit f51079d

File tree

10 files changed

+11
-230
lines changed

10 files changed

+11
-230
lines changed

CHANGELOG

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2.0.0
2+
- Removes rest/v2 pulse functions
3+
- Fixes rest/v2 margin & funding info functions
4+
- Fixes rest/v2 offers function
5+
16
1.1.0
27
- Bump dependencies for ruby 3.x
38
- 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 = '2.0.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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module RESTv2Margin
66
# @example:
77
# client.offers
88
def offers
9-
authenticated_post("auth/r/offers").body
9+
authenticated_post("auth/r/funding/offers").body
1010
end
1111

1212
# Get account margin info
@@ -17,7 +17,7 @@ def offers
1717
# @example:
1818
# client.margin_info("tBTCUSD")
1919
def margin_info(symbol = "base")
20-
authenticated_post("auth/r/margin/#{symbol}").body
20+
authenticated_post("auth/r/info/margin/#{symbol}").body
2121
end
2222

2323
# Get account funding info
@@ -27,7 +27,7 @@ def margin_info(symbol = "base")
2727
# @example:
2828
# client.funding_info
2929
def funding_info(symbol = "fUSD")
30-
authenticated_post("auth/r/funding/#{symbol}").body
30+
authenticated_post("auth/r/info/funding/#{symbol}").body
3131
end
3232
end
3333
end

lib/rest/v2/pulse.rb

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

0 commit comments

Comments
 (0)