Documentation ¶
Index ¶
- type Address
- type Addresses
- type Balance
- type BalanceHis
- type BalanceHistory
- type Bank
- type Banks
- type COrder
- type Cancel
- type CancelChildOrder
- type CancelParentOrder
- type ChildOrder
- type ChildOrders
- type Client
- type Coinin
- type Coinins
- type Coinout
- type Coinouts
- type Collateral
- type CollateralAccounts
- type CollateralHis
- type CollateralHistory
- type Commission
- type Currency
- type Deposit
- type Deposits
- type DetailParentOrder
- type Execution
- type Executions
- type POrder
- type Param
- type ParentOrder
- type ParentOrders
- type Permissions
- type Position
- type Positions
- type ResponseForAddresses
- type ResponseForBalance
- type ResponseForBalanceHistory
- type ResponseForBanks
- type ResponseForCancel
- type ResponseForCancelChildOrder
- type ResponseForCancelParentOrder
- type ResponseForChildOrder
- type ResponseForChildOrders
- type ResponseForCoinins
- type ResponseForCoinouts
- type ResponseForCollateral
- type ResponseForCollateralAccounts
- type ResponseForCollateralHistory
- type ResponseForCommission
- type ResponseForDeposits
- type ResponseForDetailParentOrder
- type ResponseForExecutions
- type ResponseForParentOrder
- type ResponseForParentOrders
- type ResponseForPermissions
- type ResponseForPositions
- type ResponseForWithdraw
- type ResponseForWithdrawals
- type Withdraw
- type Withdrawal
- type Withdrawals
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BalanceHis ¶
type BalanceHis struct { ID int64 `json:"id"` TradeDate string `json:"trade_date"` EventDate string `json:"event_date"` ProductCode string `json:"product_code"` CurrencyCode string `json:"currency_code"` TradeType string `json:"trade_type"` Price float64 `json:"price"` Amount float64 `json:"amount"` Quantity float64 `json:"quantity"` Commission float64 `json:"commission"` Balance float64 `json:"balance"` OrderID string `json:"order_id"` }
type BalanceHistory ¶
type BalanceHistory struct { CurrencyCode string `url:"currency_code,omitempty"` Count int `url:"count,omitempty"` Before int64 `url:"before,omitempty"` After int64 `url:"after,omitempty"` }
func (*BalanceHistory) IsPrivate ¶
func (req *BalanceHistory) IsPrivate() bool
func (*BalanceHistory) Method ¶
func (req *BalanceHistory) Method() string
func (*BalanceHistory) Path ¶
func (req *BalanceHistory) Path() string
func (*BalanceHistory) Payload ¶
func (req *BalanceHistory) Payload() []byte
func (*BalanceHistory) Query ¶
func (req *BalanceHistory) Query() string
type COrder ¶
type COrder struct { ID int64 `json:"id"` ChildOrderID string `json:"child_order_id"` ProductCode string `json:"product_code"` Side string `json:"side"` ChildOrderType string `json:"child_order_type"` Price float64 `json:"price"` AveragePrice float64 `json:"average_price"` Size float64 `json:"size"` ChildOrderState string `json:"child_order_state"` ExpireDate string `json:"expire_date"` ChildOrderDate string `json:"child_order_date"` ChildOrderAcceptanceID string `json:"child_order_acceptance_id"` OutstandingSize float64 `json:"outstanding_size"` CancelSize float64 `json:"cancel_size"` ExecutedSize float64 `json:"executed_size"` TotalCommission float64 `json:"total_commission"` TimeInForce string `json:"time_in_force"` }
type CancelChildOrder ¶
type CancelChildOrder struct { ProductCode string `json:"product_code"` ChildOrderID string `json:"child_order_id,omitempty"` ChildOrderAcceptanceID string `json:"child_order_acceptance_id,omitempty"` }
func (*CancelChildOrder) IsPrivate ¶
func (req *CancelChildOrder) IsPrivate() bool
func (*CancelChildOrder) Method ¶
func (req *CancelChildOrder) Method() string
func (*CancelChildOrder) Path ¶
func (req *CancelChildOrder) Path() string
func (*CancelChildOrder) Payload ¶
func (req *CancelChildOrder) Payload() []byte
func (*CancelChildOrder) Query ¶
func (req *CancelChildOrder) Query() string
type CancelParentOrder ¶
type CancelParentOrder struct { ProductCode string `json:"product_code"` ParentOrderID string `json:"parent_order_id,omitempty"` ParentOrderAcceptanceID string `json:"parent_order_acceptance_id,omitempty"` }
func (*CancelParentOrder) IsPrivate ¶
func (req *CancelParentOrder) IsPrivate() bool
func (*CancelParentOrder) Method ¶
func (req *CancelParentOrder) Method() string
func (*CancelParentOrder) Path ¶
func (req *CancelParentOrder) Path() string
func (*CancelParentOrder) Payload ¶
func (req *CancelParentOrder) Payload() []byte
func (*CancelParentOrder) Query ¶
func (req *CancelParentOrder) Query() string
type ChildOrder ¶
type ChildOrder struct { ProductCode string `json:"product_code"` ChildOrderType string `json:"child_order_type"` Side string `json:"side"` Price float64 `json:"price,omitempty"` Size float64 `json:"size"` MinuteToExpire int `json:"minute_to_expire,omitempty"` TimeInForce string `json:"time_in_force,omitempty"` }
func (*ChildOrder) IsPrivate ¶
func (req *ChildOrder) IsPrivate() bool
func (*ChildOrder) Method ¶
func (req *ChildOrder) Method() string
func (*ChildOrder) Path ¶
func (req *ChildOrder) Path() string
func (*ChildOrder) Payload ¶
func (req *ChildOrder) Payload() []byte
func (*ChildOrder) Query ¶
func (req *ChildOrder) Query() string
type ChildOrders ¶
type ChildOrders struct { ProductCode string `url:"product_code"` Count int `url:"count,omitempty"` Before int64 `url:"before,omitempty"` After int64 `url:"after,omitempty"` // ChildOrderState: ACTIVE, COMPLETED, CANCELED, EXPIRED, REJECTED ChildOrderState string `url:"child_order_state,omitempty"` ChildOrderID string `url:"child_order_id,omitempty"` ParentOrderID string `url:"parent_order_id,omitempty"` }
func (*ChildOrders) IsPrivate ¶
func (req *ChildOrders) IsPrivate() bool
func (*ChildOrders) Method ¶
func (req *ChildOrders) Method() string
func (*ChildOrders) Path ¶
func (req *ChildOrders) Path() string
func (*ChildOrders) Payload ¶
func (req *ChildOrders) Payload() []byte
func (*ChildOrders) Query ¶
func (req *ChildOrders) Query() string
type Coinins ¶
type Coinout ¶
type Coinout struct { ID int `json:"id"` OrderID string `json:"order_id"` CurrencyCode string `json:"currency_code"` Amount float64 `json:"amount"` Address string `json:"address"` TxHash string `json:"tx_hash"` Fee float64 `json:"fee"` AdditionalFee float64 `json:"additional_fee"` Status string `json:"status"` EventDate string `json:"event_date"` }
type Coinouts ¶
type Collateral ¶
type Collateral struct { }
func (*Collateral) IsPrivate ¶
func (req *Collateral) IsPrivate() bool
func (*Collateral) Method ¶
func (req *Collateral) Method() string
func (*Collateral) Path ¶
func (req *Collateral) Path() string
func (*Collateral) Payload ¶
func (req *Collateral) Payload() []byte
func (*Collateral) Query ¶
func (req *Collateral) Query() string
type CollateralAccounts ¶
type CollateralAccounts struct { }
func (*CollateralAccounts) IsPrivate ¶
func (req *CollateralAccounts) IsPrivate() bool
func (*CollateralAccounts) Method ¶
func (req *CollateralAccounts) Method() string
func (*CollateralAccounts) Path ¶
func (req *CollateralAccounts) Path() string
func (*CollateralAccounts) Payload ¶
func (req *CollateralAccounts) Payload() []byte
func (*CollateralAccounts) Query ¶
func (req *CollateralAccounts) Query() string
type CollateralHis ¶
type CollateralHistory ¶
type CollateralHistory struct { Count int `url:"count,omitempty"` Before int64 `url:"before,omitempty"` After int64 `url:"after,omitempty"` }
func (*CollateralHistory) IsPrivate ¶
func (req *CollateralHistory) IsPrivate() bool
func (*CollateralHistory) Method ¶
func (req *CollateralHistory) Method() string
func (*CollateralHistory) Path ¶
func (req *CollateralHistory) Path() string
func (*CollateralHistory) Payload ¶
func (req *CollateralHistory) Payload() []byte
func (*CollateralHistory) Query ¶
func (req *CollateralHistory) Query() string
type Commission ¶
type Commission struct {
ProductCode string `url:"product_code"`
}
func (*Commission) IsPrivate ¶
func (req *Commission) IsPrivate() bool
func (*Commission) Method ¶
func (req *Commission) Method() string
func (*Commission) Path ¶
func (req *Commission) Path() string
func (*Commission) Payload ¶
func (req *Commission) Payload() []byte
func (*Commission) Query ¶
func (req *Commission) Query() string
type Deposits ¶
type DetailParentOrder ¶
type DetailParentOrder struct { ParentOrderID string `url:"parent_order_id,omitempty"` ParentOrderAcceptanceID string `url:"parent_order_acceptance_id,omitempty"` }
func (*DetailParentOrder) IsPrivate ¶
func (req *DetailParentOrder) IsPrivate() bool
func (*DetailParentOrder) Method ¶
func (req *DetailParentOrder) Method() string
func (*DetailParentOrder) Path ¶
func (req *DetailParentOrder) Path() string
func (*DetailParentOrder) Payload ¶
func (req *DetailParentOrder) Payload() []byte
func (*DetailParentOrder) Query ¶
func (req *DetailParentOrder) Query() string
type Execution ¶
type Execution struct { ID int64 `json:"id"` ChildOrderID string `json:"child_order_id"` Side string `json:"side"` Price float64 `json:"price"` Size float64 `json:"size"` Commission float64 `json:"commission"` ExecDate string `json:"exec_date"` ChildOrderAcceptanceID string `json:"child_order_acceptance_id"` }
type Executions ¶
type Executions struct { ProductCode string `url:"product_code,omitempty"` Count int `url:"count,omitempty"` Before int64 `url:"before,omitempty"` After int64 `url:"after,omitempty"` ChildOrderID string `url:"child_order_id,omitempty"` ChildOrderAcceptanceID string `url:"child_order_acceptance_id,omitempty"` }
func (*Executions) IsPrivate ¶
func (req *Executions) IsPrivate() bool
func (*Executions) Method ¶
func (req *Executions) Method() string
func (*Executions) Path ¶
func (req *Executions) Path() string
func (*Executions) Payload ¶
func (req *Executions) Payload() []byte
func (*Executions) Query ¶
func (req *Executions) Query() string
type POrder ¶
type POrder struct { ID int64 `json:"id"` ParentOrderID string `json:"parent_order_id"` ProductCode string `json:"product_code"` Side string `json:"side"` ParentOrderType string `json:"parent_order_type"` Price float64 `json:"price"` AveragePrice float64 `json:"average_price"` Size float64 `json:"size"` ParentOrderState string `json:"parent_order_state"` ExpireDate string `json:"expire_date"` ParentOrderDate string `json:"parent_order_date"` ParentOrderAcceptanceID string `json:"parent_order_acceptance_id"` OutstandingSize float64 `json:"outstanding_size"` CancelSize float64 `json:"cancel_size"` ExecutedSize float64 `json:"executed_size"` TotalCommission float64 `json:"total_commission"` }
type ParentOrder ¶
type ParentOrder struct { OrderMethod string `json:"order_method,omitempty"` MinuteToExpire int `json:"minute_to_expire,omitempty"` TimeInForce string `json:"time_in_force,omitempty"` Parameters []Param `json:"parameters"` }
func (*ParentOrder) IsPrivate ¶
func (req *ParentOrder) IsPrivate() bool
func (*ParentOrder) Method ¶
func (req *ParentOrder) Method() string
func (*ParentOrder) Path ¶
func (req *ParentOrder) Path() string
func (*ParentOrder) Payload ¶
func (req *ParentOrder) Payload() []byte
func (*ParentOrder) Query ¶
func (req *ParentOrder) Query() string
type ParentOrders ¶
type ParentOrders struct { ProductCode int `url:"product_code,omitempty"` Count int `url:"count,omitempty"` Before int64 `url:"before,omitempty"` // ChildOrderState: ACTIVE, COMPLETED, CANCELED, EXPIRED, REJECTED ParentOrderState string `url:"parent_order_state,omitempty"` }
func (*ParentOrders) IsPrivate ¶
func (req *ParentOrders) IsPrivate() bool
func (*ParentOrders) Method ¶
func (req *ParentOrders) Method() string
func (*ParentOrders) Path ¶
func (req *ParentOrders) Path() string
func (*ParentOrders) Payload ¶
func (req *ParentOrders) Payload() []byte
func (*ParentOrders) Query ¶
func (req *ParentOrders) Query() string
type Permissions ¶
type Permissions struct { }
func (*Permissions) IsPrivate ¶
func (req *Permissions) IsPrivate() bool
func (*Permissions) Method ¶
func (req *Permissions) Method() string
func (*Permissions) Path ¶
func (req *Permissions) Path() string
func (*Permissions) Payload ¶
func (req *Permissions) Payload() []byte
func (*Permissions) Query ¶
func (req *Permissions) Query() string
type Position ¶
type Position struct { ProductCode string `json:"product_code"` Side string `json:"side"` Price float64 `json:"price"` Size float64 `json:"size"` Commission float64 `json:"commission"` SwapPointAccumulate float64 `json:"swap_point_accumulate"` RequireCollateral float64 `json:"require_collateral"` OpenDate string `json:"open_date"` Leverage float64 `json:"leverage"` Pnl float64 `json:"pnl"` Sfd float64 `json:"sfd"` }
type ResponseForAddresses ¶
type ResponseForAddresses []Address
type ResponseForBalance ¶
type ResponseForBalance []Currency
type ResponseForBalanceHistory ¶
type ResponseForBalanceHistory []BalanceHis
type ResponseForBanks ¶
type ResponseForBanks []Bank
type ResponseForCancel ¶
type ResponseForCancel struct{}
type ResponseForCancelChildOrder ¶
type ResponseForCancelChildOrder struct{}
type ResponseForCancelParentOrder ¶
type ResponseForCancelParentOrder struct{}
type ResponseForChildOrder ¶
type ResponseForChildOrder struct {
ChildOrderAcceptanceID string `json:"child_order_acceptance_id"`
}
type ResponseForChildOrders ¶
type ResponseForChildOrders []COrder
type ResponseForCoinins ¶
type ResponseForCoinins []Coinin
type ResponseForCoinouts ¶
type ResponseForCoinouts []Coinout
type ResponseForCollateral ¶
type ResponseForCollateral struct { Collateral float64 `json:"collateral"` OpenPositionPnl float64 `json:"open_position_pnl"` RequireCollateral float64 `json:"require_collateral"` KeepRate float64 `json:"keep_rate"` MarginCallAmount float64 `json:"margin_call_amount"` MarginCallDueDate string `json:"margin_call_due_date"` }
type ResponseForCollateralAccounts ¶
type ResponseForCollateralAccounts []Currency
type ResponseForCollateralHistory ¶
type ResponseForCollateralHistory []CollateralHis
type ResponseForCommission ¶
type ResponseForCommission struct {
CommissionRate float64 `json:"commission_rate"`
}
type ResponseForDeposits ¶
type ResponseForDeposits []Deposit
type ResponseForDetailParentOrder ¶
type ResponseForDetailParentOrder struct { ID int64 `json:"id"` ParentOrderID string `json:"parent_order_id"` OrderMethod string `json:"order_method"` ExpireDate string `json:"expire_date"` TimeInForce string `json:"time_in_force"` Parameters []Param `json:"parameters"` ParentOrderAcceptanceID string `json:"parent_order_acceptance_id"` }
type ResponseForExecutions ¶
type ResponseForExecutions []Execution
type ResponseForParentOrder ¶
type ResponseForParentOrder struct {
ParentOrderAcceptanceID string `json:"parent_order_acceptance_id"`
}
type ResponseForParentOrders ¶
type ResponseForParentOrders []POrder
type ResponseForPermissions ¶
type ResponseForPermissions []string
type ResponseForPositions ¶
type ResponseForPositions []Position
type ResponseForWithdraw ¶
type ResponseForWithdrawals ¶
type ResponseForWithdrawals []Withdrawal
type Withdraw ¶
type Withdrawal ¶
type Withdrawals ¶
type Withdrawals struct { Count int `url:"count,omitempty"` Before int64 `url:"before,omitempty"` After int64 `url:"after,omitempty"` // MessageID 戻り値の受付 ID を指定して、出金状況を確認 MessageID string `url:"message_id,omitempty"` }
func (*Withdrawals) IsPrivate ¶
func (req *Withdrawals) IsPrivate() bool
func (*Withdrawals) Method ¶
func (req *Withdrawals) Method() string
func (*Withdrawals) Path ¶
func (req *Withdrawals) Path() string
func (*Withdrawals) Payload ¶
func (req *Withdrawals) Payload() []byte
func (*Withdrawals) Query ¶
func (req *Withdrawals) Query() string
Source Files ¶
- addresses.go
- balance-history.go
- balance.go
- banks.go
- cancel-order-child.go
- cancel-order-parent.go
- cancel-orders.go
- client.go
- coinins.go
- coinouts.go
- collateral-accounts.go
- collateral-history.go
- collateral.go
- commission.go
- deposits.go
- executions.go
- order-child.go
- order-parent-detail.go
- order-parent.go
- orders-child.go
- orders-parent.go
- permissions.go
- positions.go
- withdraw.go
- withdrawals.go
Click to show internal directories.
Click to hide internal directories.