Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GetCmd = &cobra.Command{ Use: "get", Short: "Get trade details", Run: func(cmd *cobra.Command, args []string) { symbol, _ := cmd.Flags().GetString("symbol") order, err := trade.Get(symbol) if err != nil { fmt.Print(err) } utils.OPrint(order) }, }
listCmd represents the list command
View Source
var ListCmd = &cobra.Command{ Use: "list", Short: "List trades", Run: func(cmd *cobra.Command, args []string) { symbol, _ := cmd.Flags().GetString("symbol") prices, err := trade.List(context.Background(), symbol) if err != nil { fmt.Print(err) } utils.OPrint(prices) }, }
listCmd represents the list command
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.