func main() {

	// First we use the list of known levels to get a level name from the user.

	levelname := gofighter.NameFromUser("known_levels.json")

	// We load the original response we got when we started the game, this is
	// located in the /gm/ directory and contains the instance ID.

	level, _ := gofighter.LoadGMfile(levelname)

	stop, _ := gofighter.GMstop("", level.InstanceId) // When given "", the function will use the API key from api_key.txt
	gofighter.PrintJSON(stop)
}
func main() {

	// First we use the list of known levels to get a level name from the user.
	// Then we call the gamemaster to start that level.

	levelname := gofighter.NameFromUser("known_levels.json")
	start, _ := gofighter.GMstart("", levelname) // When given "", the function will use the API key from api_key.txt

	// The response is saved in the /gm/ folder so that we can load the essential
	// info (account, venue, symbol) in the trading program, or whatever.

	gofighter.SaveGMfile(levelname, start)

	info := gofighter.TradingInfoFromName(levelname)
	gofighter.PrintJSON(info)
}