package main import ( "context" "fmt" bybit "github.com/wuhewuhe/bybit.go.api" ) func main() { CreateNewSubUser() } func CreateNewSubUser() { client := bybit.NewBybitHttpClient("YOUR_API_KEY", "YOUR_API_SECRET", bybit.WithBaseURL(bybit.TESTNET)) params := map[string]interface{}{"username": "06112023Victor", "memberType": 1} userResult, err := client.NewUserService(params).CreateSubMember(context.Background()) if err != nil { fmt.Println(err) return } fmt.Println(bybit.PrettyPrint(userResult)) }