Skip to content

Commit ba88667

Browse files
Update hyperliquid_test.go
1 parent eb00557 commit ba88667

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

hyperliquid/hyperliquid_test.go

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77

88
func GetHyperliquidAPI() *Hyperliquid {
99
hl := NewHyperliquid(&HyperliquidClientConfig{
10-
IsMainnet: true,
10+
IsMainnet: false,
1111
AccountAddress: os.Getenv("TEST_ADDRESS"),
1212
PrivateKey: os.Getenv("TEST_PRIVATE_KEY"),
1313
})
@@ -105,3 +105,12 @@ func TestHyperliquid_MakeSomeTradingLogic(t *testing.T) {
105105
}
106106
t.Logf("GetAccountState(): %v", res8)
107107
}
108+
109+
func TestHyperliquid_MakeOrder(t *testing.T) {
110+
client := GetHyperliquidAPI()
111+
order, err := client.MarketOrder("ADA", 15, nil)
112+
if err != nil {
113+
t.Errorf("Error: %v", err)
114+
}
115+
t.Logf("MarketOrder(ADA, 15, nil): %+v", order)
116+
}

0 commit comments

Comments
 (0)