Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2.0.0
- Removes rest/v2 pulse functions
- Fixes rest/v2 margin & funding info functions
- Fixes rest/v2 offers function

1.1.0
- Bump dependencies for ruby 3.x
- Replace faraday_adapter_socks with custom class
Expand Down
4 changes: 2 additions & 2 deletions bitfinex-rb.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)

Gem::Specification.new do |spec|
spec.name = 'bitfinex-rb'
spec.version = '1.1.0'
spec.version = '2.0.0'
spec.authors = ['Bitfinex']
spec.email = ['[email protected]']
spec.summary = %q{Bitfinex API Wrapper}
spec.description = %q{Official Bitfinex API ruby wrapper}
spec.homepage = 'https://www.bitfinex.com/'
spec.license = 'MIT'

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

Expand Down
2 changes: 1 addition & 1 deletion docs/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
* `:wallet_snapshot`
* `:wallet_update`
* `:balance_update`
* `:marign_info_update`
* `:margin_info_update`
* `:funding_info_update`
* `:funding_trade_entry`
* `:funding_trade_update`
47 changes: 0 additions & 47 deletions examples/rest/v2/pulse.rb

This file was deleted.

2 changes: 0 additions & 2 deletions lib/bitfinex.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,3 @@
require_relative './models/trading_ticker'
require_relative './models/user_info'
require_relative './models/wallet'
require_relative './models/pulse_profile'
require_relative './models/pulse'
37 changes: 0 additions & 37 deletions lib/models/pulse.rb

This file was deleted.

31 changes: 0 additions & 31 deletions lib/models/pulse_profile.rb

This file was deleted.

2 changes: 0 additions & 2 deletions lib/rest/v2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
require_relative './v2/wallet'
require_relative './v2/funding'
require_relative './v2/positions'
require_relative './v2/pulse'

module Bitfinex
class RESTv2
Expand All @@ -28,7 +27,6 @@ class RESTv2
include Bitfinex::RESTv2Wallet
include Bitfinex::RESTv2Funding
include Bitfinex::RESTv2Positions
include Bitfinex::RESTv2Pulse

def initialize(args = {})
self.api_endpoint = args[:url] ? "#{args[:url]}/v2/" : "https://api.bitfinex.com/v2/"
Expand Down
6 changes: 3 additions & 3 deletions lib/rest/v2/margin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module RESTv2Margin
# @example:
# client.offers
def offers
authenticated_post("auth/r/offers").body
authenticated_post("auth/r/funding/offers").body
end

# Get account margin info
Expand All @@ -17,7 +17,7 @@ def offers
# @example:
# client.margin_info("tBTCUSD")
def margin_info(symbol = "base")
authenticated_post("auth/r/margin/#{symbol}").body
authenticated_post("auth/r/info/margin/#{symbol}").body
end

# Get account funding info
Expand All @@ -27,7 +27,7 @@ def margin_info(symbol = "base")
# @example:
# client.funding_info
def funding_info(symbol = "fUSD")
authenticated_post("auth/r/funding/#{symbol}").body
authenticated_post("auth/r/info/funding/#{symbol}").body
end
end
end
105 changes: 0 additions & 105 deletions lib/rest/v2/pulse.rb

This file was deleted.