Module: Bibox::Rest::Private::Contracts::Assets
- Included in:
- Client
- Defined in:
- lib/bibox/rest/private/contracts/assets.rb
Instance Method Summary collapse
Instance Method Details
#contract_assets(coin_symbol: "USDT", options: {}) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/bibox/rest/private/contracts/assets.rb', line 7 def contract_assets(coin_symbol: "USDT", options: {}) payload = [ { cmd: "query/assets", body: { coin_symbol: coin_symbol } } ] response = parse(post("/cquery", data: payload, options: ))&.fetch("result", [])&.first&.fetch("result", []) end |