Module: Hyperliquid::Constants

Defined in:
lib/hyperliquid/constants.rb

Overview

Constants for Hyperliquid API

Constant Summary collapse

MAINNET_API_URL =

API URLs

'https://api.hyperliquid.xyz'
TESTNET_API_URL =
'https://api.hyperliquid-testnet.xyz'
MAINNET_RPC_URL =

Explorer RPC URLs (used by Info#tx_details and Info#user_details)

'https://rpc.hyperliquid.xyz'
TESTNET_RPC_URL =
'https://rpc.hyperliquid-testnet.xyz'
INFO_ENDPOINT =

API endpoints

'/info'
EXCHANGE_ENDPOINT =
'/exchange'
EXPLORER_ENDPOINT =
'/explorer'
WS_ENDPOINT =

WebSocket

'/ws'
WS_PING_INTERVAL =

seconds between pings

50
WS_MAX_QUEUE_SIZE =

max queued messages before dropping

1024
DEFAULT_TIMEOUT =

Request timeouts (seconds)

30
DEFAULT_READ_TIMEOUT =
30