本页面尚未提供您的语言版本,显示其他语言版本。

Adapter initialization Hyperliquid

The code below demonstrates how to initialize HyperliquidMessageAdapter and pass it to Connector.

Connector Connector = new Connector();
...
var messageAdapter = new HyperliquidMessageAdapter(Connector.TransactionIdGenerator)
{
	WalletAddress = "<Your Wallet Address>",
	PrivateKey = "<Your Private Key>".To<SecureString>(),
	Section = HyperliquidSections.Derivatives,
	IsTestnet = false,
};
Connector.Adapter.InnerAdapters.Add(messageAdapter);
...

Connection settings window