Module: Bitfinex::RESTv2Margin

Included in:
RESTv2
Defined in:
lib/rest/v2/margin.rb

Instance Method Summary collapse

Instance Method Details

#funding_info(symbol = "fUSD") ⇒ Object

Get account funding info

@example:

client.funding_info

Parameters:

  • symbol (string) (defaults to: "fUSD")

    default fUSD



29
30
31
# File 'lib/rest/v2/margin.rb', line 29

def funding_info(symbol = "fUSD")
  authenticated_post("auth/r/funding/#{symbol}").body
end

#margin_info(symbol = "base") ⇒ Object

Get account margin info

  • if symbol is not specified return everything

@example:

client.margin_info("tBTCUSD")

Parameters:

  • symbol (string) (defaults to: "base")

    (optional)



19
20
21
# File 'lib/rest/v2/margin.rb', line 19

def margin_info(symbol = "base")
  authenticated_post("auth/r/margin/#{symbol}").body
end

#offersObject

Get active offers

@example:

client.offers


8
9
10
# File 'lib/rest/v2/margin.rb', line 8

def offers
  authenticated_post("auth/r/offers").body
end