Tradehub (Tradehub v0.1.7) View Source
This modules mainly focusing on defining custom types for the Tradehub response.
Link to this section Summary
Link to this section Types
Specs
Specs
Specs
address() :: String.t()
Specs
Specs
Specs
Specs
Specs
Specs
Specs
Specs
market() :: %{ base: text(), base_name: text(), base_precision: text(), closed_block_height: text(), created_block_height: text(), description: text(), display_name: text(), expiry_time: text(), impact_size: text(), index_oracle_id: text(), initial_margin_base: text(), initial_margin_step: text(), is_active: text(), is_settled: text(), last_price_protected_band: text(), lot_size: text(), maintenance_margin_ratio: text(), maker_fee: text(), mark_price_band: text(), market_type: text(), max_liquidation_order_duration: text(), max_liquidation_order_ticket: text(), min_quantity: text(), name: text(), quote: text(), quote_name: text(), quote_precision: text(), risk_step_size: text(), taker_fee: text(), tick_size: text(), type: text() }
Specs
Specs
Specs
Specs
order() :: %{ address: text(), allocated_margin_amount: text(), allocated_margin_denom: text(), available: text(), block_created_at: text(), block_height: text(), filled: text(), id: text(), initiator: text(), is_liquidation: text(), is_post_only: text(), is_reduce_only: text(), market: text(), order_id: text(), order_status: text(), order_type: text(), price: text(), quantity: text(), side: text(), stop_price: text(), time_in_force: text(), trigger_type: text(), triggered_block_height: text(), type: text(), username: text() }
Specs
orderbook() :: %{asks: [orderbook_record()], bids: [orderbook_record()]}
Specs
Specs
position() :: %{ address: text(), allocated_margin_amount: text(), allocated_margin_denom: text(), closed_block_height: text(), closed_block_time: text(), created_block_height: text(), entry_price: text(), lots: text(), market: text(), realized_pnl: text(), type: text(), updated_block_height: text(), username: text() }
Specs
Specs
Specs
protocol_status() :: %{ id: integer(), jsonrpc: text(), result: protocol_status_result :: %{ node_info: node_info :: %{ channels: text(), id: text(), listen_addr: text(), moniker: text(), network: text(), other: node_info :: %{rpc_address: text(), tx_index: text()}, protocol_version: protocol_version :: %{app: text(), block: text(), p2p: text()}, version: text() }, sync_info: sync_info :: %{ catching_up: boolean(), earliest_app_hash: text(), earliest_block_hash: text(), earliest_block_height: text(), earliest_block_time: text(), latest_app_hash: text(), latest_block_hash: text(), latest_block_height: text(), latest_block_time: text() }, validator_info: validator_info :: %{ address: text(), pub_key: pub_key :: %{type: text(), value: text()}, voting_power: text() } } }
Specs
Specs
Specs
Specs
text() :: String.t()
Specs
Specs
Specs
trade() :: %{ block_created_at: text(), block_height: text(), id: text(), liquidation: text(), maker_address: text(), maker_fee_amount: text(), maker_fee_denom: text(), maker_id: text(), maker_side: text(), maker_username: text(), market: text(), price: text(), quantity: text(), taker_address: text(), taker_fee_amount: text(), taker_fee_denom: text(), taker_id: text(), taker_side: text(), taker_username: text() }
Specs
Specs
transfer_record() :: %{ address: text(), amount: text(), block_height: text(), blockchain: text(), contract_hash: text(), denom: text(), fee_address: text(), fee_amount: text(), id: text(), status: text(), symbol: text(), timestamp: text(), token_name: text(), transaction_hash: text(), transfer_type: text() }
Specs
Specs
Specs
Specs
validator() :: %{ BondStatus: text(), Commission: commission :: %{ commission_rates: comission_rates :: %{ max_change_rate: text(), max_rate: text(), rate: text() }, update_time: text() }, ConsAddress: text(), ConsAddressByte: text(), ConsPubKey: text(), DelegatorShares: text(), Description: validator_description :: %{ details: text(), identity: text(), moniker: text(), security_contact: text(), website: text() }, Jailed: boolean(), MinSelfDelegation: text(), OperatorAddress: text(), Status: text(), Tokens: text(), UnbondingCompletionTime: text(), UnbondingHeight: integer(), WalletAddress: text() }