private

package
v0.0.0-...-df7f5f2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	Type         string `json:"type"`
	CurrencyCode string `json:"currency_code"`
	Address      string `json:"address"`
}

type Addresses

type Addresses struct {
}

func (*Addresses) IsPrivate

func (req *Addresses) IsPrivate() bool

func (*Addresses) Method

func (req *Addresses) Method() string

func (*Addresses) Path

func (req *Addresses) Path() string

func (*Addresses) Payload

func (req *Addresses) Payload() []byte

func (*Addresses) Query

func (req *Addresses) Query() string

type Balance

type Balance struct {
}

func (*Balance) IsPrivate

func (req *Balance) IsPrivate() bool

func (*Balance) Method

func (req *Balance) Method() string

func (*Balance) Path

func (req *Balance) Path() string

func (*Balance) Payload

func (req *Balance) Payload() []byte

func (*Balance) Query

func (req *Balance) Query() string

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 Bank

type Bank struct {
	ID            int    `json:"id"`
	IsVerified    bool   `json:"is_verified"`
	BankName      string `json:"bank_name"`
	BranchName    string `json:"branch_name"`
	AccountType   string `json:"account_type"`
	AccountNumber string `json:"account_number"`
	AccountName   string `json:"account_name"`
}

type Banks

type Banks struct {
}

func (*Banks) IsPrivate

func (req *Banks) IsPrivate() bool

func (*Banks) Method

func (req *Banks) Method() string

func (*Banks) Path

func (req *Banks) Path() string

func (*Banks) Payload

func (req *Banks) Payload() []byte

func (*Banks) Query

func (req *Banks) 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 Cancel

type Cancel struct {
	ProductCode string `json:"product_code"`
}

func (*Cancel) IsPrivate

func (req *Cancel) IsPrivate() bool

func (*Cancel) Method

func (req *Cancel) Method() string

func (*Cancel) Path

func (req *Cancel) Path() string

func (*Cancel) Payload

func (req *Cancel) Payload() []byte

func (*Cancel) Query

func (req *Cancel) Query() string

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 Client

type Client struct {
}

type Coinin

type Coinin 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"`
	Status       string  `json:"status"`
	EventDate    string  `json:"event_date"`
}

type Coinins

type Coinins struct {
	Count  int   `url:"count,omitempty"`
	Before int64 `url:"before,omitempty"`
	After  int64 `url:"after,omitempty"`
}

func (*Coinins) IsPrivate

func (req *Coinins) IsPrivate() bool

func (*Coinins) Method

func (req *Coinins) Method() string

func (*Coinins) Path

func (req *Coinins) Path() string

func (*Coinins) Payload

func (req *Coinins) Payload() []byte

func (*Coinins) Query

func (req *Coinins) Query() string

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 Coinouts struct {
	Count  int   `url:"count,omitempty"`
	Before int64 `url:"before,omitempty"`
	After  int64 `url:"after,omitempty"`
}

func (*Coinouts) IsPrivate

func (req *Coinouts) IsPrivate() bool

func (*Coinouts) Method

func (req *Coinouts) Method() string

func (*Coinouts) Path

func (req *Coinouts) Path() string

func (*Coinouts) Payload

func (req *Coinouts) Payload() []byte

func (*Coinouts) Query

func (req *Coinouts) Query() string

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 CollateralHis struct {
	ID           int64   `json:"id"`
	CurrencyCode string  `json:"currency_code"`
	Change       float64 `json:"change"`
	Amount       float64 `json:"amount"`
	ReasonCode   string  `json:"reason_code"`
	Date         string  `json:"date"`
}

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 Currency

type Currency struct {
	CurrencyCode string  `json:"currency_code"`
	Amount       float64 `json:"amount"`
	Available    float64 `json:"available,omitempty"`
}

type Deposit

type Deposit struct {
	ID           int     `json:"id"`
	OrderID      string  `json:"order_id"`
	CurrencyCode string  `json:"currency_code"`
	Amount       float64 `json:"amount"`
	Status       string  `json:"status"`
	EventDate    string  `json:"event_date"`
}

type Deposits

type Deposits struct {
	Count  int   `url:"count,omitempty"`
	Before int64 `url:"before,omitempty"`
	After  int64 `url:"after,omitempty"`
}

func (*Deposits) IsPrivate

func (req *Deposits) IsPrivate() bool

func (*Deposits) Method

func (req *Deposits) Method() string

func (*Deposits) Path

func (req *Deposits) Path() string

func (*Deposits) Payload

func (req *Deposits) Payload() []byte

func (*Deposits) Query

func (req *Deposits) Query() string

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 Param

type Param struct {
	ProductCode   string  `json:"product_code"`
	ConditionType string  `json:"condition_type"`
	Side          string  `json:"side"`
	Price         float64 `json:"price,omitempty"`
	Size          float64 `json:"size"`
	TriggerPrice  float64 `json:"trigger_price,omitempty"`
	Offset        float64 `json:"offset,omitempty"`
}

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 Positions

type Positions struct {
	ProductCode string `url:"product_code,omitempty"`
}

func (*Positions) IsPrivate

func (req *Positions) IsPrivate() bool

func (*Positions) Method

func (req *Positions) Method() string

func (*Positions) Path

func (req *Positions) Path() string

func (*Positions) Payload

func (req *Positions) Payload() []byte

func (*Positions) Query

func (req *Positions) Query() string

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 ResponseForWithdraw struct {
	MessageID string `json:"message_id,omitempty"`

	// when error
	Status       int         `json:"status,omitempty"`
	ErrorMessage string      `json:"error_message,omitempty"`
	Data         interface{} `json:"data,omitempty"`
}

type ResponseForWithdrawals

type ResponseForWithdrawals []Withdrawal

type Withdraw

type Withdraw struct {
	// CurrencyCode 現在は "JPY" のみ
	CurrencyCode  string  `json:"currency_code"`
	BankAccountID int     `json:"bank_account_id"`
	Amount        float64 `json:"amount"`
	// Code 二段階認証の確認コード
	Code string `json:"code,omitempty"`
}

func (*Withdraw) IsPrivate

func (req *Withdraw) IsPrivate() bool

func (*Withdraw) Method

func (req *Withdraw) Method() string

func (*Withdraw) Path

func (req *Withdraw) Path() string

func (*Withdraw) Payload

func (req *Withdraw) Payload() []byte

func (*Withdraw) Query

func (req *Withdraw) Query() string

type Withdrawal

type Withdrawal struct {
	ID           int     `json:"id"`
	OrderID      string  `json:"order_id"`
	CurrencyCode string  `json:"currency_code"`
	Amount       float64 `json:"amount"`
	Status       string  `json:"status"`
	EventDate    string  `json:"event_date"`
}

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL