-
Notifications
You must be signed in to change notification settings - Fork 1
/
tx.go
73 lines (66 loc) · 2.6 KB
/
tx.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
package cli
import (
"fmt"
"time"
"github.com/spf13/cobra"
"github.com/cosmos/cosmos-sdk/client"
// "github.com/cosmos/cosmos-sdk/client/flags"
"github.com/jim380/Re/x/fix/types"
)
var DefaultRelativePacketTimeoutTimestamp = uint64((time.Duration(10) * time.Minute).Nanoseconds())
// GetTxCmd returns the transaction commands for this module
func GetTxCmd() *cobra.Command {
cmd := &cobra.Command{
Use: types.ModuleName,
Short: fmt.Sprintf("%s transactions subcommands", types.ModuleName),
DisableFlagParsing: true,
SuggestionsMinimumDistance: 2,
RunE: client.ValidateCmd,
}
cmd.AddCommand(CmdLogonInitiator())
cmd.AddCommand(CmdLogonAcceptor())
cmd.AddCommand(CmdTerminateLogon())
cmd.AddCommand(CmdLogonReject())
cmd.AddCommand(CmdLogoutInitiator())
cmd.AddCommand(CmdLogoutAcceptor())
cmd.AddCommand(CmdNewOrderSingle())
cmd.AddCommand(CmdOrderCancelRequest())
cmd.AddCommand(CmdOrderCancelReject())
cmd.AddCommand(CmdOrderExecutionReport())
cmd.AddCommand(CmdQuoteRequest())
cmd.AddCommand(CmdQuoteAcknowledgement())
cmd.AddCommand(CmdQuoteRequestReject())
cmd.AddCommand(CmdTradeCaptureReport())
cmd.AddCommand(CmdTradeCaptureReportAcknowledgement())
cmd.AddCommand(CmdTradeCaptureReportRejection())
cmd.AddCommand(CmdMarketDataRequest())
cmd.AddCommand(CmdMarketDataSnapshotFullRefresh())
cmd.AddCommand(CmdMarketDataIncremental())
cmd.AddCommand(CmdMarketDataRequestReject())
cmd.AddCommand(CmdSecurityDefinitionRequest())
cmd.AddCommand(CmdSecurityDefinition())
cmd.AddCommand(CmdSecurityDefinitionRequestReject())
cmd.AddCommand(CmdOrderMassStatusRequest())
cmd.AddCommand(CmdOrderMassStatusReport())
cmd.AddCommand(CmdOrderMassStatusRequestReject())
cmd.AddCommand(CmdTradingSessionStatusRequest())
cmd.AddCommand(CmdTradingSessionStatus())
cmd.AddCommand(CmdTradingSessionStatusRequestReject())
cmd.AddCommand(CmdTradingSessionListRequest())
cmd.AddCommand(CmdTradingSessionListResponse())
cmd.AddCommand(CmdTradingSessionListRequestReject())
cmd.AddCommand(CmdSecurityListRequest())
cmd.AddCommand(CmdSecurityListResponse())
cmd.AddCommand(CmdSecurityListRequestReject())
cmd.AddCommand(CmdSecurityStatusRequest())
cmd.AddCommand(CmdSecurityStatusResponse())
cmd.AddCommand(CmdSecurityStatusRequestReject())
cmd.AddCommand(CmdSecurityTypesRequest())
cmd.AddCommand(CmdSecurityTypesResponse())
cmd.AddCommand(CmdSecurityTypesRequestReject())
cmd.AddCommand(CmdRegisterAccount())
cmd.AddCommand(CmdUpdateAccount())
cmd.AddCommand(CmdDeleteAccount())
// this line is used by starport scaffolding # 1
return cmd
}