module Gemini::V2::MarginClient
Public Instance Methods
funding_info(symbol = "fUSD")
click to toggle source
Get account funding info
@param symbol [string] default fUSD
@example:
client.funding_info
# File lib/gemini/v2/margin.rb, line 30 def funding_info(symbol = "fUSD") authenticated_post("auth/r/funding/#{symbol}").body end
margin_info(symbol = "base")
click to toggle source
Get account margin info
-
if symbol is not specified return everything
@param symbol [string] (optional)
@example:
client.margin_info("tBTCUSD")
# File lib/gemini/v2/margin.rb, line 19 def margin_info(symbol = "base") authenticated_post("auth/r/margin/#{symbol}").body end
offers()
click to toggle source
Get active offers
@example:
client.offers
# File lib/gemini/v2/margin.rb, line 8 def offers authenticated_post("auth/r/offers").body end