Module: Bitfinex::RESTv2Margin
- Included in:
- RESTv2
- Defined in:
- lib/rest/v2/margin.rb
Instance Method Summary collapse
-
#funding_info(symbol = "fUSD") ⇒ Object
Get account funding info.
-
#margin_info(symbol = "base") ⇒ Object
Get account margin info - if symbol is not specified return everything.
-
#offers ⇒ Object
Get active offers.
Instance Method Details
#funding_info(symbol = "fUSD") ⇒ Object
Get account funding info
@example:
client.funding_info
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")
19 20 21 |
# File 'lib/rest/v2/margin.rb', line 19 def margin_info(symbol = "base") authenticated_post("auth/r/margin/#{symbol}").body end |
#offers ⇒ Object
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 |