parse_network_info

Function parse_network_info 

Source
pub fn parse_network_info(data: &Value) -> Result<NetworkInfo>
Expand description

Parse network information from Binance API.

§Binance API Response Format

Single network entry within the networkList array:

{
  "network": "BTC",
  "coin": "BTC",
  "withdrawIntegerMultiple": "0.00000001",
  "isDefault": true,
  "depositEnable": true,
  "withdrawEnable": true,
  "depositDesc": "",
  "withdrawDesc": "",
  "name": "Bitcoin",
  "withdrawFee": "0.0005",
  "withdrawMin": "0.001",
  "withdrawMax": "9999999",
  "minConfirm": 1,
  "unLockConfirm": 2
}

§Returns

Returns a NetworkInfo structure.