private

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2019 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuyRequest

type BuyRequest struct {
	Amount         int64  `json:"amount" mapstructure:"amount"`
	InstrumentName string `json:"instrument_name" mapstructure:"instrument_name"`
	Label          string `json:"label" mapstructure:"label"`
	Type           string `json:"type" mapstructure:"type"`
}

type BuyResponse

type BuyResponse struct {
	Order struct {
		Amount              int64   `json:"amount" mapstructure:"amount"`
		API                 bool    `json:"api" mapstructure:"api"`
		AveragePrice        float64 `json:"average_price" mapstructure:"average_price"`
		Commission          float64 `json:"commission" mapstructure:"commission"`
		CreationTimestamp   int64   `json:"creation_timestamp" mapstructure:"creation_timestamp"`
		Direction           string  `json:"direction" mapstructure:"direction"`
		FilledAmount        int64   `json:"filled_amount" mapstructure:"filled_amount"`
		InstrumentName      string  `json:"instrument_name" mapstructure:"instrument_name"`
		IsLiquidation       bool    `json:"is_liquidation" mapstructure:"is_liquidation"`
		Label               string  `json:"label" mapstructure:"label"`
		LastUpdateTimestamp int64   `json:"last_update_timestamp" mapstructure:"last_update_timestamp"`
		MaxShow             int64   `json:"max_show" mapstructure:"max_show"`
		OrderID             string  `json:"order_id" mapstructure:"order_id"`
		OrderState          string  `json:"order_state" mapstructure:"order_state"`
		OrderType           string  `json:"order_type" mapstructure:"order_type"`
		PostOnly            bool    `json:"post_only" mapstructure:"post_only"`
		Price               string  `json:"price" mapstructure:"price"`
		ProfitLoss          int64   `json:"profit_loss" mapstructure:"profit_loss"`
		ReduceOnly          bool    `json:"reduce_only" mapstructure:"reduce_only"`
		TimeInForce         string  `json:"time_in_force" mapstructure:"time_in_force"`
	} `json:"order" mapstructure:"order"`
	Trades []struct {
		Amount         int64       `json:"amount" mapstructure:"amount"`
		Direction      string      `json:"direction" mapstructure:"direction"`
		Fee            float64     `json:"fee" mapstructure:"fee"`
		FeeCurrency    string      `json:"fee_currency" mapstructure:"fee_currency"`
		IndexPrice     float64     `json:"index_price" mapstructure:"index_price"`
		InstrumentName string      `json:"instrument_name" mapstructure:"instrument_name"`
		Label          string      `json:"label" mapstructure:"label"`
		Liquidity      string      `json:"liquidity" mapstructure:"liquidity"`
		MatchingID     interface{} `json:"matching_id" mapstructure:"matching_id"`
		OrderID        string      `json:"order_id" mapstructure:"order_id"`
		OrderType      string      `json:"order_type" mapstructure:"order_type"`
		Price          float64     `json:"price" mapstructure:"price"`
		SelfTrade      bool        `json:"self_trade" mapstructure:"self_trade"`
		State          string      `json:"state" mapstructure:"state"`
		TickDirection  int64       `json:"tick_direction" mapstructure:"tick_direction"`
		Timestamp      int64       `json:"timestamp" mapstructure:"timestamp"`
		TradeID        string      `json:"trade_id" mapstructure:"trade_id"`
		TradeSeq       int64       `json:"trade_seq" mapstructure:"trade_seq"`
	} `json:"trades" mapstructure:"trades"`
}

type CancelAllByCurrencyRequest

type CancelAllByCurrencyRequest struct {
	Currency string `json:"currency" mapstructure:"currency"`
	Kind     string `json:"kind" mapstructure:"kind"`
}

type CancelAllByCurrencyResponse

type CancelAllByCurrencyResponse string

type CancelAllByInstrumentRequest

type CancelAllByInstrumentRequest struct {
	InstrumentName string `json:"instrument_name" mapstructure:"instrument_name"`
	Type           string `json:"type" mapstructure:"type"`
}

type CancelAllByInstrumentResponse

type CancelAllByInstrumentResponse string

type CancelAllRequest

type CancelAllRequest struct{}

type CancelAllResponse

type CancelAllResponse string

type CancelRequest

type CancelRequest struct {
	OrderID string `json:"order_id" mapstructure:"order_id"`
}

type CancelResponse

type CancelResponse struct {
	Amount              int64   `json:"amount" mapstructure:"amount"`
	API                 bool    `json:"api" mapstructure:"api"`
	CreationTimestamp   int64   `json:"creation_timestamp" mapstructure:"creation_timestamp"`
	Direction           string  `json:"direction" mapstructure:"direction"`
	InstrumentName      string  `json:"instrument_name" mapstructure:"instrument_name"`
	IsLiquidation       bool    `json:"is_liquidation" mapstructure:"is_liquidation"`
	Label               string  `json:"label" mapstructure:"label"`
	LastUpdateTimestamp int64   `json:"last_update_timestamp" mapstructure:"last_update_timestamp"`
	MaxShow             int64   `json:"max_show" mapstructure:"max_show"`
	OrderID             string  `json:"order_id" mapstructure:"order_id"`
	OrderState          string  `json:"order_state" mapstructure:"order_state"`
	OrderType           string  `json:"order_type" mapstructure:"order_type"`
	PostOnly            bool    `json:"post_only" mapstructure:"post_only"`
	Price               string  `json:"price" mapstructure:"price"`
	ProfitLoss          int64   `json:"profit_loss" mapstructure:"profit_loss"`
	ReduceOnly          bool    `json:"reduce_only" mapstructure:"reduce_only"`
	StopPrice           float64 `json:"stop_price" mapstructure:"stop_price"`
	TimeInForce         string  `json:"time_in_force" mapstructure:"time_in_force"`
	Trigger             string  `json:"trigger" mapstructure:"trigger"`
	Triggered           bool    `json:"triggered" mapstructure:"triggered"`
}

type CancelTransferByIdRequest

type CancelTransferByIdRequest struct {
	Currency string `json:"currency" mapstructure:"currency"`
	ID       int64  `json:"id" mapstructure:"id"`
}

type CancelTransferByIdResponse

type CancelTransferByIdResponse struct {
	Amount           float64 `json:"amount" mapstructure:"amount"`
	CreatedTimestamp int64   `json:"created_timestamp" mapstructure:"created_timestamp"`
	Currency         string  `json:"currency" mapstructure:"currency"`
	Direction        string  `json:"direction" mapstructure:"direction"`
	ID               int64   `json:"id" mapstructure:"id"`
	OtherSide        string  `json:"other_side" mapstructure:"other_side"`
	State            string  `json:"state" mapstructure:"state"`
	Type             string  `json:"type" mapstructure:"type"`
	UpdatedTimestamp int64   `json:"updated_timestamp" mapstructure:"updated_timestamp"`
}

type CancelWithdrawalRequest

type CancelWithdrawalRequest struct {
	Currency string `json:"currency" mapstructure:"currency"`
	ID       int64  `json:"id" mapstructure:"id"`
}

type CancelWithdrawalResponse

type CancelWithdrawalResponse struct {
	Address            string      `json:"address" mapstructure:"address"`
	Amount             float64     `json:"amount" mapstructure:"amount"`
	ConfirmedTimestamp interface{} `json:"confirmed_timestamp" mapstructure:"confirmed_timestamp"`
	CreatedTimestamp   int64       `json:"created_timestamp" mapstructure:"created_timestamp"`
	Currency           string      `json:"currency" mapstructure:"currency"`
	Fee                float64     `json:"fee" mapstructure:"fee"`
	ID                 int64       `json:"id" mapstructure:"id"`
	Priority           float64     `json:"priority" mapstructure:"priority"`
	State              string      `json:"state" mapstructure:"state"`
	TransactionID      interface{} `json:"transaction_id" mapstructure:"transaction_id"`
	UpdatedTimestamp   int64       `json:"updated_timestamp" mapstructure:"updated_timestamp"`
}

type ChangeSubaccountNameRequest

type ChangeSubaccountNameRequest struct {
	Name string `json:"name" mapstructure:"name"`
	Sid  int64  `json:"sid" mapstructure:"sid"`
}

type ChangeSubaccountNameResponse

type ChangeSubaccountNameResponse string

type ClosePositionRequest

type ClosePositionRequest struct {
	InstrumentName string  `json:"instrument_name" mapstructure:"instrument_name"`
	Price          float64 `json:"price" mapstructure:"price"`
	Type           string  `json:"type" mapstructure:"type"`
}

type ClosePositionResponse

type ClosePositionResponse struct {
	Order struct {
		Amount              int64   `json:"amount" mapstructure:"amount"`
		API                 bool    `json:"api" mapstructure:"api"`
		AveragePrice        float64 `json:"average_price" mapstructure:"average_price"`
		Commission          int64   `json:"commission" mapstructure:"commission"`
		CreationTimestamp   int64   `json:"creation_timestamp" mapstructure:"creation_timestamp"`
		Direction           string  `json:"direction" mapstructure:"direction"`
		FilledAmount        int64   `json:"filled_amount" mapstructure:"filled_amount"`
		InstrumentName      string  `json:"instrument_name" mapstructure:"instrument_name"`
		IsLiquidation       bool    `json:"is_liquidation" mapstructure:"is_liquidation"`
		Label               string  `json:"label" mapstructure:"label"`
		LastUpdateTimestamp int64   `json:"last_update_timestamp" mapstructure:"last_update_timestamp"`
		MaxShow             int64   `json:"max_show" mapstructure:"max_show"`
		OrderID             string  `json:"order_id" mapstructure:"order_id"`
		OrderState          string  `json:"order_state" mapstructure:"order_state"`
		OrderType           string  `json:"order_type" mapstructure:"order_type"`
		PostOnly            bool    `json:"post_only" mapstructure:"post_only"`
		Price               float64 `json:"price" mapstructure:"price"`
		ProfitLoss          int64   `json:"profit_loss" mapstructure:"profit_loss"`
		ReduceOnly          bool    `json:"reduce_only" mapstructure:"reduce_only"`
		TimeInForce         string  `json:"time_in_force" mapstructure:"time_in_force"`
	} `json:"order" mapstructure:"order"`
	Trades []struct {
		Amount         int64       `json:"amount" mapstructure:"amount"`
		Direction      string      `json:"direction" mapstructure:"direction"`
		Fee            int64       `json:"fee" mapstructure:"fee"`
		FeeCurrency    string      `json:"fee_currency" mapstructure:"fee_currency"`
		IndexPrice     float64     `json:"index_price" mapstructure:"index_price"`
		InstrumentName string      `json:"instrument_name" mapstructure:"instrument_name"`
		Liquidity      string      `json:"liquidity" mapstructure:"liquidity"`
		MatchingID     interface{} `json:"matching_id" mapstructure:"matching_id"`
		OrderID        string      `json:"order_id" mapstructure:"order_id"`
		OrderType      string      `json:"order_type" mapstructure:"order_type"`
		Price          float64     `json:"price" mapstructure:"price"`
		SelfTrade      bool        `json:"self_trade" mapstructure:"self_trade"`
		State          string      `json:"state" mapstructure:"state"`
		TickDirection  int64       `json:"tick_direction" mapstructure:"tick_direction"`
		Timestamp      int64       `json:"timestamp" mapstructure:"timestamp"`
		TradeID        string      `json:"trade_id" mapstructure:"trade_id"`
		TradeSeq       int64       `json:"trade_seq" mapstructure:"trade_seq"`
	} `json:"trades" mapstructure:"trades"`
}

type CreateDepositAddressRequest

type CreateDepositAddressRequest struct {
	Currency string `json:"currency" mapstructure:"currency"`
}

type CreateDepositAddressResponse

type CreateDepositAddressResponse struct {
	Address           string `json:"address" mapstructure:"address"`
	CreationTimestamp int64  `json:"creation_timestamp" mapstructure:"creation_timestamp"`
	Currency          string `json:"currency" mapstructure:"currency"`
	Type              string `json:"type" mapstructure:"type"`
}

type CreateSubaccountRequest

type CreateSubaccountRequest struct{}

type CreateSubaccountResponse

type CreateSubaccountResponse struct {
	Email        string `json:"email" mapstructure:"email"`
	ID           int64  `json:"id" mapstructure:"id"`
	IsPassword   bool   `json:"is_password" mapstructure:"is_password"`
	LoginEnabled bool   `json:"login_enabled" mapstructure:"login_enabled"`
	Portfolio    struct {
		Btc struct {
			AvailableFunds           int64  `json:"available_funds" mapstructure:"available_funds"`
			AvailableWithdrawalFunds int64  `json:"available_withdrawal_funds" mapstructure:"available_withdrawal_funds"`
			Balance                  int64  `json:"balance" mapstructure:"balance"`
			Currency                 string `json:"currency" mapstructure:"currency"`
			Equity                   int64  `json:"equity" mapstructure:"equity"`
			InitialMargin            int64  `json:"initial_margin" mapstructure:"initial_margin"`
			MaintenanceMargin        int64  `json:"maintenance_margin" mapstructure:"maintenance_margin"`
			MarginBalance            int64  `json:"margin_balance" mapstructure:"margin_balance"`
		} `json:"btc" mapstructure:"btc"`
		Eth struct {
			AvailableFunds           int64  `json:"available_funds" mapstructure:"available_funds"`
			AvailableWithdrawalFunds int64  `json:"available_withdrawal_funds" mapstructure:"available_withdrawal_funds"`
			Balance                  int64  `json:"balance" mapstructure:"balance"`
			Currency                 string `json:"currency" mapstructure:"currency"`
			Equity                   int64  `json:"equity" mapstructure:"equity"`
			InitialMargin            int64  `json:"initial_margin" mapstructure:"initial_margin"`
			MaintenanceMargin        int64  `json:"maintenance_margin" mapstructure:"maintenance_margin"`
			MarginBalance            int64  `json:"margin_balance" mapstructure:"margin_balance"`
		} `json:"eth" mapstructure:"eth"`
	} `json:"portfolio" mapstructure:"portfolio"`
	ReceiveNotifications bool   `json:"receive_notifications" mapstructure:"receive_notifications"`
	SystemName           string `json:"system_name" mapstructure:"system_name"`
	TfaEnabled           bool   `json:"tfa_enabled" mapstructure:"tfa_enabled"`
	Type                 string `json:"type" mapstructure:"type"`
	Username             string `json:"username" mapstructure:"username"`
}

type DisableCancelOnDisconnectRequest

type DisableCancelOnDisconnectRequest struct{}

type DisableCancelOnDisconnectResponse

type DisableCancelOnDisconnectResponse string

type DisableTfaForSubaccountRequest

type DisableTfaForSubaccountRequest struct {
	Sid int64 `json:"sid" mapstructure:"sid"`
}

type DisableTfaForSubaccountResponse

type DisableTfaForSubaccountResponse string

type EditRequest

type EditRequest struct {
	Advanced string `json:"advanced" mapstructure:"advanced"`
	Amount   int64  `json:"amount" mapstructure:"amount"`
	OrderID  string `json:"order_id" mapstructure:"order_id"`
	Price    int64  `json:"price" mapstructure:"price"`
}

type EditResponse

type EditResponse struct {
	Order struct {
		Advanced            string  `json:"advanced" mapstructure:"advanced"`
		Amount              int64   `json:"amount" mapstructure:"amount"`
		API                 bool    `json:"api" mapstructure:"api"`
		AveragePrice        int64   `json:"average_price" mapstructure:"average_price"`
		Commission          int64   `json:"commission" mapstructure:"commission"`
		CreationTimestamp   int64   `json:"creation_timestamp" mapstructure:"creation_timestamp"`
		Direction           string  `json:"direction" mapstructure:"direction"`
		FilledAmount        int64   `json:"filled_amount" mapstructure:"filled_amount"`
		Implv               int64   `json:"implv" mapstructure:"implv"`
		InstrumentName      string  `json:"instrument_name" mapstructure:"instrument_name"`
		IsLiquidation       bool    `json:"is_liquidation" mapstructure:"is_liquidation"`
		Label               string  `json:"label" mapstructure:"label"`
		LastUpdateTimestamp int64   `json:"last_update_timestamp" mapstructure:"last_update_timestamp"`
		MaxShow             int64   `json:"max_show" mapstructure:"max_show"`
		OrderID             string  `json:"order_id" mapstructure:"order_id"`
		OrderState          string  `json:"order_state" mapstructure:"order_state"`
		OrderType           string  `json:"order_type" mapstructure:"order_type"`
		PostOnly            bool    `json:"post_only" mapstructure:"post_only"`
		Price               float64 `json:"price" mapstructure:"price"`
		ProfitLoss          int64   `json:"profit_loss" mapstructure:"profit_loss"`
		ReduceOnly          bool    `json:"reduce_only" mapstructure:"reduce_only"`
		TimeInForce         string  `json:"time_in_force" mapstructure:"time_in_force"`
	} `json:"order" mapstructure:"order"`
	Trades []interface{} `json:"trades" mapstructure:"trades"`
}

type EnableCancelOnDisconnectRequest

type EnableCancelOnDisconnectRequest struct{}

type EnableCancelOnDisconnectResponse

type EnableCancelOnDisconnectResponse string

type GetAccountSummaryRequest

type GetAccountSummaryRequest struct {
	Currency string `json:"currency" mapstructure:"currency"`
	Extended bool   `json:"extended" mapstructure:"extended"`
}

type GetAccountSummaryResponse

type GetAccountSummaryResponse struct {
	AvailableFunds            float64 `json:"available_funds" mapstructure:"available_funds"`
	AvailableWithdrawalFunds  float64 `json:"available_withdrawal_funds" mapstructure:"available_withdrawal_funds"`
	Balance                   float64 `json:"balance" mapstructure:"balance"`
	Currency                  string  `json:"currency" mapstructure:"currency"`
	DeltaTotal                float64 `json:"delta_total" mapstructure:"delta_total"`
	DepositAddress            string  `json:"deposit_address" mapstructure:"deposit_address"`
	Email                     string  `json:"email" mapstructure:"email"`
	Equity                    float64 `json:"equity" mapstructure:"equity"`
	FuturesPl                 int64   `json:"futures_pl" mapstructure:"futures_pl"`
	FuturesSessionRpl         int64   `json:"futures_session_rpl" mapstructure:"futures_session_rpl"`
	FuturesSessionUpl         int64   `json:"futures_session_upl" mapstructure:"futures_session_upl"`
	ID                        int64   `json:"id" mapstructure:"id"`
	InitialMargin             float64 `json:"initial_margin" mapstructure:"initial_margin"`
	MaintenanceMargin         float64 `json:"maintenance_margin" mapstructure:"maintenance_margin"`
	MarginBalance             float64 `json:"margin_balance" mapstructure:"margin_balance"`
	OptionsDelta              int64   `json:"options_delta" mapstructure:"options_delta"`
	OptionsGamma              int64   `json:"options_gamma" mapstructure:"options_gamma"`
	OptionsPl                 int64   `json:"options_pl" mapstructure:"options_pl"`
	OptionsSessionRpl         int64   `json:"options_session_rpl" mapstructure:"options_session_rpl"`
	OptionsSessionUpl         int64   `json:"options_session_upl" mapstructure:"options_session_upl"`
	OptionsTheta              int64   `json:"options_theta" mapstructure:"options_theta"`
	OptionsVega               int64   `json:"options_vega" mapstructure:"options_vega"`
	PortfolioMarginingEnabled bool    `json:"portfolio_margining_enabled" mapstructure:"portfolio_margining_enabled"`
	SessionFunding            int64   `json:"session_funding" mapstructure:"session_funding"`
	SessionRpl                int64   `json:"session_rpl" mapstructure:"session_rpl"`
	SessionUpl                int64   `json:"session_upl" mapstructure:"session_upl"`
	SystemName                string  `json:"system_name" mapstructure:"system_name"`
	TfaEnabled                bool    `json:"tfa_enabled" mapstructure:"tfa_enabled"`
	TotalPl                   int64   `json:"total_pl" mapstructure:"total_pl"`
	Type                      string  `json:"type" mapstructure:"type"`
	Username                  string  `json:"username" mapstructure:"username"`
}

type GetCurrentDepositAddressRequest

type GetCurrentDepositAddressRequest struct {
	Currency string `json:"currency" mapstructure:"currency"`
}

type GetCurrentDepositAddressResponse

type GetCurrentDepositAddressResponse struct {
	Address           string `json:"address" mapstructure:"address"`
	CreationTimestamp int64  `json:"creation_timestamp" mapstructure:"creation_timestamp"`
	Currency          string `json:"currency" mapstructure:"currency"`
	Type              string `json:"type" mapstructure:"type"`
}

type GetDepositsRequest

type GetDepositsRequest struct {
	Count    int64  `json:"count" mapstructure:"count"`
	Currency string `json:"currency" mapstructure:"currency"`
	Offset   int64  `json:"offset" mapstructure:"offset"`
}

type GetDepositsResponse

type GetDepositsResponse struct {
	Count int64 `json:"count" mapstructure:"count"`
	Data  []struct {
		Address           string `json:"address" mapstructure:"address"`
		Amount            int64  `json:"amount" mapstructure:"amount"`
		Currency          string `json:"currency" mapstructure:"currency"`
		ReceivedTimestamp int64  `json:"received_timestamp" mapstructure:"received_timestamp"`
		State             string `json:"state" mapstructure:"state"`
		TransactionID     string `json:"transaction_id" mapstructure:"transaction_id"`
		UpdatedTimestamp  int64  `json:"updated_timestamp" mapstructure:"updated_timestamp"`
	} `json:"data" mapstructure:"data"`
}

type GetEmailLanguageRequest

type GetEmailLanguageRequest struct{}

type GetEmailLanguageResponse

type GetEmailLanguageResponse string

type GetMarginsRequest

type GetMarginsRequest struct {
	Amount         int64  `json:"amount" mapstructure:"amount"`
	InstrumentName string `json:"instrument_name" mapstructure:"instrument_name"`
	Price          int64  `json:"price" mapstructure:"price"`
}

type GetMarginsResponse

type GetMarginsResponse struct {
	Buy      float64 `json:"buy" mapstructure:"buy"`
	MaxPrice float64 `json:"max_price" mapstructure:"max_price"`
	MinPrice float64 `json:"min_price" mapstructure:"min_price"`
	Sell     int64   `json:"sell" mapstructure:"sell"`
}

type GetNewAnnouncementsRequest

type GetNewAnnouncementsRequest struct{}

type GetNewAnnouncementsResponse

type GetNewAnnouncementsResponse []struct {
	Body            string `json:"body" mapstructure:"body"`
	ID              int64  `json:"id" mapstructure:"id"`
	Important       bool   `json:"important" mapstructure:"important"`
	PublicationTime int64  `json:"publication_time" mapstructure:"publication_time"`
	Title           string `json:"title" mapstructure:"title"`
}

type GetOpenOrdersByCurrencyRequest

type GetOpenOrdersByCurrencyRequest struct {
	Currency string `json:"currency" mapstructure:"currency"`
}

type GetOpenOrdersByCurrencyResponse

type GetOpenOrdersByCurrencyResponse []struct {
	Amount              int64   `json:"amount" mapstructure:"amount"`
	API                 bool    `json:"api" mapstructure:"api"`
	AveragePrice        int64   `json:"average_price" mapstructure:"average_price"`
	Commission          int64   `json:"commission" mapstructure:"commission"`
	CreationTimestamp   int64   `json:"creation_timestamp" mapstructure:"creation_timestamp"`
	Direction           string  `json:"direction" mapstructure:"direction"`
	FilledAmount        int64   `json:"filled_amount" mapstructure:"filled_amount"`
	InstrumentName      string  `json:"instrument_name" mapstructure:"instrument_name"`
	IsLiquidation       bool    `json:"is_liquidation" mapstructure:"is_liquidation"`
	Label               string  `json:"label" mapstructure:"label"`
	LastUpdateTimestamp int64   `json:"last_update_timestamp" mapstructure:"last_update_timestamp"`
	MaxShow             int64   `json:"max_show" mapstructure:"max_show"`
	OrderID             string  `json:"order_id" mapstructure:"order_id"`
	OrderState          string  `json:"order_state" mapstructure:"order_state"`
	OrderType           string  `json:"order_type" mapstructure:"order_type"`
	PostOnly            bool    `json:"post_only" mapstructure:"post_only"`
	Price               float64 `json:"price" mapstructure:"price"`
	ProfitLoss          int64   `json:"profit_loss" mapstructure:"profit_loss"`
	ReduceOnly          bool    `json:"reduce_only" mapstructure:"reduce_only"`
	TimeInForce         string  `json:"time_in_force" mapstructure:"time_in_force"`
}

type GetOpenOrdersByInstrumentRequest

type GetOpenOrdersByInstrumentRequest struct {
	InstrumentName string `json:"instrument_name" mapstructure:"instrument_name"`
}

type GetOpenOrdersByInstrumentResponse

type GetOpenOrdersByInstrumentResponse []struct {
	Amount              int64   `json:"amount" mapstructure:"amount"`
	API                 bool    `json:"api" mapstructure:"api"`
	AveragePrice        int64   `json:"average_price" mapstructure:"average_price"`
	Commission          int64   `json:"commission" mapstructure:"commission"`
	CreationTimestamp   int64   `json:"creation_timestamp" mapstructure:"creation_timestamp"`
	Direction           string  `json:"direction" mapstructure:"direction"`
	FilledAmount        int64   `json:"filled_amount" mapstructure:"filled_amount"`
	InstrumentName      string  `json:"instrument_name" mapstructure:"instrument_name"`
	IsLiquidation       bool    `json:"is_liquidation" mapstructure:"is_liquidation"`
	Label               string  `json:"label" mapstructure:"label"`
	LastUpdateTimestamp int64   `json:"last_update_timestamp" mapstructure:"last_update_timestamp"`
	MaxShow             int64   `json:"max_show" mapstructure:"max_show"`
	OrderID             string  `json:"order_id" mapstructure:"order_id"`
	OrderState          string  `json:"order_state" mapstructure:"order_state"`
	OrderType           string  `json:"order_type" mapstructure:"order_type"`
	PostOnly            bool    `json:"post_only" mapstructure:"post_only"`
	Price               float64 `json:"price" mapstructure:"price"`
	ProfitLoss          int64   `json:"profit_loss" mapstructure:"profit_loss"`
	ReduceOnly          bool    `json:"reduce_only" mapstructure:"reduce_only"`
	TimeInForce         string  `json:"time_in_force" mapstructure:"time_in_force"`
}

type GetOrderHistoryByCurrencyRequest

type GetOrderHistoryByCurrencyRequest struct {
	Count    int64  `json:"count" mapstructure:"count"`
	Currency string `json:"currency" mapstructure:"currency"`
	Kind     string `json:"kind" mapstructure:"kind"`
}

type GetOrderHistoryByCurrencyResponse

type GetOrderHistoryByCurrencyResponse []struct {
	Amount              int64   `json:"amount" mapstructure:"amount"`
	API                 bool    `json:"api" mapstructure:"api"`
	AveragePrice        float64 `json:"average_price" mapstructure:"average_price"`
	Commission          int64   `json:"commission" mapstructure:"commission"`
	CreationTimestamp   int64   `json:"creation_timestamp" mapstructure:"creation_timestamp"`
	Direction           string  `json:"direction" mapstructure:"direction"`
	FilledAmount        int64   `json:"filled_amount" mapstructure:"filled_amount"`
	InstrumentName      string  `json:"instrument_name" mapstructure:"instrument_name"`
	IsLiquidation       bool    `json:"is_liquidation" mapstructure:"is_liquidation"`
	Label               string  `json:"label" mapstructure:"label"`
	LastUpdateTimestamp int64   `json:"last_update_timestamp" mapstructure:"last_update_timestamp"`
	MaxShow             int64   `json:"max_show" mapstructure:"max_show"`
	OrderID             string  `json:"order_id" mapstructure:"order_id"`
	OrderState          string  `json:"order_state" mapstructure:"order_state"`
	OrderType           string  `json:"order_type" mapstructure:"order_type"`
	PostOnly            bool    `json:"post_only" mapstructure:"post_only"`
	Price               float64 `json:"price" mapstructure:"price"`
	ProfitLoss          int64   `json:"profit_loss" mapstructure:"profit_loss"`
	ReduceOnly          bool    `json:"reduce_only" mapstructure:"reduce_only"`
	TimeInForce         string  `json:"time_in_force" mapstructure:"time_in_force"`
}

type GetOrderHistoryByInstrumentRequest

type GetOrderHistoryByInstrumentRequest struct {
	Count          int64  `json:"count" mapstructure:"count"`
	InstrumentName string `json:"instrument_name" mapstructure:"instrument_name"`
}

type GetOrderHistoryByInstrumentResponse

type GetOrderHistoryByInstrumentResponse []struct {
	Amount              int64   `json:"amount" mapstructure:"amount"`
	API                 bool    `json:"api" mapstructure:"api"`
	AveragePrice        float64 `json:"average_price" mapstructure:"average_price"`
	Commission          int64   `json:"commission" mapstructure:"commission"`
	CreationTimestamp   int64   `json:"creation_timestamp" mapstructure:"creation_timestamp"`
	Direction           string  `json:"direction" mapstructure:"direction"`
	FilledAmount        int64   `json:"filled_amount" mapstructure:"filled_amount"`
	InstrumentName      string  `json:"instrument_name" mapstructure:"instrument_name"`
	IsLiquidation       bool    `json:"is_liquidation" mapstructure:"is_liquidation"`
	Label               string  `json:"label" mapstructure:"label"`
	LastUpdateTimestamp int64   `json:"last_update_timestamp" mapstructure:"last_update_timestamp"`
	MaxShow             int64   `json:"max_show" mapstructure:"max_show"`
	OrderID             string  `json:"order_id" mapstructure:"order_id"`
	OrderState          string  `json:"order_state" mapstructure:"order_state"`
	OrderType           string  `json:"order_type" mapstructure:"order_type"`
	PostOnly            bool    `json:"post_only" mapstructure:"post_only"`
	Price               float64 `json:"price" mapstructure:"price"`
	ProfitLoss          int64   `json:"profit_loss" mapstructure:"profit_loss"`
	ReduceOnly          bool    `json:"reduce_only" mapstructure:"reduce_only"`
	TimeInForce         string  `json:"time_in_force" mapstructure:"time_in_force"`
}

type GetOrderMarginByIdsRequest

type GetOrderMarginByIdsRequest struct {
	Ids []string `json:"ids" mapstructure:"ids"`
}

type GetOrderMarginByIdsResponse

type GetOrderMarginByIdsResponse []struct {
	InitialMargin float64 `json:"initial_margin" mapstructure:"initial_margin"`
	OrderID       string  `json:"order_id" mapstructure:"order_id"`
}

type GetOrderStateRequest

type GetOrderStateRequest struct {
	OrderID string `json:"order_id" mapstructure:"order_id"`
}

type GetOrderStateResponse

type GetOrderStateResponse struct {
	Amount              int64   `json:"amount" mapstructure:"amount"`
	API                 bool    `json:"api" mapstructure:"api"`
	AveragePrice        float64 `json:"average_price" mapstructure:"average_price"`
	Commission          int64   `json:"commission" mapstructure:"commission"`
	CreationTimestamp   int64   `json:"creation_timestamp" mapstructure:"creation_timestamp"`
	Direction           string  `json:"direction" mapstructure:"direction"`
	FilledAmount        int64   `json:"filled_amount" mapstructure:"filled_amount"`
	InstrumentName      string  `json:"instrument_name" mapstructure:"instrument_name"`
	IsLiquidation       bool    `json:"is_liquidation" mapstructure:"is_liquidation"`
	Label               string  `json:"label" mapstructure:"label"`
	LastUpdateTimestamp int64   `json:"last_update_timestamp" mapstructure:"last_update_timestamp"`
	MaxShow             int64   `json:"max_show" mapstructure:"max_show"`
	OrderID             string  `json:"order_id" mapstructure:"order_id"`
	OrderState          string  `json:"order_state" mapstructure:"order_state"`
	OrderType           string  `json:"order_type" mapstructure:"order_type"`
	PostOnly            bool    `json:"post_only" mapstructure:"post_only"`
	Price               float64 `json:"price" mapstructure:"price"`
	ProfitLoss          float64 `json:"profit_loss" mapstructure:"profit_loss"`
	ReduceOnly          bool    `json:"reduce_only" mapstructure:"reduce_only"`
	TimeInForce         string  `json:"time_in_force" mapstructure:"time_in_force"`
}

type GetPositionRequest

type GetPositionRequest struct {
	InstrumentName string `json:"instrument_name" mapstructure:"instrument_name"`
}

type GetPositionResponse

type GetPositionResponse struct {
	AveragePrice              int64   `json:"average_price" mapstructure:"average_price"`
	Delta                     int64   `json:"delta" mapstructure:"delta"`
	Direction                 string  `json:"direction" mapstructure:"direction"`
	EstimatedLiquidationPrice int64   `json:"estimated_liquidation_price" mapstructure:"estimated_liquidation_price"`
	FloatingProfitLoss        int64   `json:"floating_profit_loss" mapstructure:"floating_profit_loss"`
	IndexPrice                float64 `json:"index_price" mapstructure:"index_price"`
	InitialMargin             int64   `json:"initial_margin" mapstructure:"initial_margin"`
	InstrumentName            string  `json:"instrument_name" mapstructure:"instrument_name"`
	Kind                      string  `json:"kind" mapstructure:"kind"`
	MaintenanceMargin         int64   `json:"maintenance_margin" mapstructure:"maintenance_margin"`
	MarkPrice                 float64 `json:"mark_price" mapstructure:"mark_price"`
	OpenOrdersMargin          float64 `json:"open_orders_margin" mapstructure:"open_orders_margin"`
	RealizedProfitLoss        int64   `json:"realized_profit_loss" mapstructure:"realized_profit_loss"`
	SettlementPrice           float64 `json:"settlement_price" mapstructure:"settlement_price"`
	Size                      int64   `json:"size" mapstructure:"size"`
	SizeCurrency              int64   `json:"size_currency" mapstructure:"size_currency"`
	TotalProfitLoss           int64   `json:"total_profit_loss" mapstructure:"total_profit_loss"`
}

type GetPositionsRequest

type GetPositionsRequest struct {
	Currency string `json:"currency" mapstructure:"currency"`
	Kind     string `json:"kind" mapstructure:"kind"`
}

type GetPositionsResponse

type GetPositionsResponse []struct {
	AveragePrice              int64   `json:"average_price" mapstructure:"average_price"`
	Delta                     int64   `json:"delta" mapstructure:"delta"`
	Direction                 string  `json:"direction" mapstructure:"direction"`
	EstimatedLiquidationPrice int64   `json:"estimated_liquidation_price" mapstructure:"estimated_liquidation_price"`
	FloatingProfitLoss        int64   `json:"floating_profit_loss" mapstructure:"floating_profit_loss"`
	IndexPrice                float64 `json:"index_price" mapstructure:"index_price"`
	InitialMargin             int64   `json:"initial_margin" mapstructure:"initial_margin"`
	InstrumentName            string  `json:"instrument_name" mapstructure:"instrument_name"`
	Kind                      string  `json:"kind" mapstructure:"kind"`
	MaintenanceMargin         int64   `json:"maintenance_margin" mapstructure:"maintenance_margin"`
	MarkPrice                 float64 `json:"mark_price" mapstructure:"mark_price"`
	OpenOrdersMargin          float64 `json:"open_orders_margin" mapstructure:"open_orders_margin"`
	RealizedProfitLoss        int64   `json:"realized_profit_loss" mapstructure:"realized_profit_loss"`
	SettlementPrice           float64 `json:"settlement_price" mapstructure:"settlement_price"`
	Size                      int64   `json:"size" mapstructure:"size"`
	SizeCurrency              int64   `json:"size_currency" mapstructure:"size_currency"`
	TotalProfitLoss           int64   `json:"total_profit_loss" mapstructure:"total_profit_loss"`
}

type GetSettlementHistoryByCurrencyRequest

type GetSettlementHistoryByCurrencyRequest struct {
	Count    int64  `json:"count" mapstructure:"count"`
	Currency string `json:"currency" mapstructure:"currency"`
	Type     string `json:"type" mapstructure:"type"`
}

type GetSettlementHistoryByCurrencyResponse

type GetSettlementHistoryByCurrencyResponse struct {
	Continuation string `json:"continuation" mapstructure:"continuation"`
	Settlements  []struct {
		IndexPrice        float64 `json:"index_price" mapstructure:"index_price"`
		InstrumentName    string  `json:"instrument_name" mapstructure:"instrument_name"`
		MarkPrice         float64 `json:"mark_price" mapstructure:"mark_price"`
		Position          int64   `json:"position" mapstructure:"position"`
		ProfitLoss        float64 `json:"profit_loss" mapstructure:"profit_loss"`
		SessionProfitLoss float64 `json:"session_profit_loss" mapstructure:"session_profit_loss"`
		Timestamp         int64   `json:"timestamp" mapstructure:"timestamp"`
		Type              string  `json:"type" mapstructure:"type"`
	} `json:"settlements" mapstructure:"settlements"`
}

type GetSettlementHistoryByInstrumentRequest

type GetSettlementHistoryByInstrumentRequest struct {
	Count          int64  `json:"count" mapstructure:"count"`
	InstrumentName string `json:"instrument_name" mapstructure:"instrument_name"`
	Type           string `json:"type" mapstructure:"type"`
}

type GetSettlementHistoryByInstrumentResponse

type GetSettlementHistoryByInstrumentResponse struct {
	Continuation string `json:"continuation" mapstructure:"continuation"`
	Settlements  []struct {
		IndexPrice        float64 `json:"index_price" mapstructure:"index_price"`
		InstrumentName    string  `json:"instrument_name" mapstructure:"instrument_name"`
		MarkPrice         float64 `json:"mark_price" mapstructure:"mark_price"`
		Position          int64   `json:"position" mapstructure:"position"`
		ProfitLoss        float64 `json:"profit_loss" mapstructure:"profit_loss"`
		SessionProfitLoss float64 `json:"session_profit_loss" mapstructure:"session_profit_loss"`
		Timestamp         int64   `json:"timestamp" mapstructure:"timestamp"`
		Type              string  `json:"type" mapstructure:"type"`
	} `json:"settlements" mapstructure:"settlements"`
}

type GetSubaccountsRequest

type GetSubaccountsRequest struct {
	WithPortfolio bool `json:"with_portfolio" mapstructure:"with_portfolio"`
}

type GetSubaccountsResponse

type GetSubaccountsResponse []struct {
	Email        string `json:"email" mapstructure:"email"`
	ID           int64  `json:"id" mapstructure:"id"`
	IsPassword   bool   `json:"is_password" mapstructure:"is_password"`
	LoginEnabled bool   `json:"login_enabled" mapstructure:"login_enabled"`
	Portfolio    struct {
		Btc struct {
			AvailableFunds           float64 `json:"available_funds" mapstructure:"available_funds"`
			AvailableWithdrawalFunds float64 `json:"available_withdrawal_funds" mapstructure:"available_withdrawal_funds"`
			Balance                  float64 `json:"balance" mapstructure:"balance"`
			Currency                 string  `json:"currency" mapstructure:"currency"`
			Equity                   float64 `json:"equity" mapstructure:"equity"`
			InitialMargin            float64 `json:"initial_margin" mapstructure:"initial_margin"`
			MaintenanceMargin        float64 `json:"maintenance_margin" mapstructure:"maintenance_margin"`
			MarginBalance            float64 `json:"margin_balance" mapstructure:"margin_balance"`
		} `json:"btc" mapstructure:"btc"`
		Eth struct {
			AvailableFunds           int64  `json:"available_funds" mapstructure:"available_funds"`
			AvailableWithdrawalFunds int64  `json:"available_withdrawal_funds" mapstructure:"available_withdrawal_funds"`
			Balance                  int64  `json:"balance" mapstructure:"balance"`
			Currency                 string `json:"currency" mapstructure:"currency"`
			Equity                   int64  `json:"equity" mapstructure:"equity"`
			InitialMargin            int64  `json:"initial_margin" mapstructure:"initial_margin"`
			MaintenanceMargin        int64  `json:"maintenance_margin" mapstructure:"maintenance_margin"`
			MarginBalance            int64  `json:"margin_balance" mapstructure:"margin_balance"`
		} `json:"eth" mapstructure:"eth"`
	} `json:"portfolio" mapstructure:"portfolio"`
	ReceiveNotifications bool   `json:"receive_notifications" mapstructure:"receive_notifications"`
	SystemName           string `json:"system_name" mapstructure:"system_name"`
	TfaEnabled           bool   `json:"tfa_enabled" mapstructure:"tfa_enabled"`
	Type                 string `json:"type" mapstructure:"type"`
	Username             string `json:"username" mapstructure:"username"`
}

type GetTransfersRequest

type GetTransfersRequest struct {
	Count    int64  `json:"count" mapstructure:"count"`
	Currency string `json:"currency" mapstructure:"currency"`
}

type GetTransfersResponse

type GetTransfersResponse struct {
	Count int64 `json:"count" mapstructure:"count"`
	Data  []struct {
		Amount           float64 `json:"amount" mapstructure:"amount"`
		CreatedTimestamp int64   `json:"created_timestamp" mapstructure:"created_timestamp"`
		Currency         string  `json:"currency" mapstructure:"currency"`
		Direction        string  `json:"direction" mapstructure:"direction"`
		ID               int64   `json:"id" mapstructure:"id"`
		OtherSide        string  `json:"other_side" mapstructure:"other_side"`
		State            string  `json:"state" mapstructure:"state"`
		Type             string  `json:"type" mapstructure:"type"`
		UpdatedTimestamp int64   `json:"updated_timestamp" mapstructure:"updated_timestamp"`
	} `json:"data" mapstructure:"data"`
}

type GetUserTradesByCurrencyAndTimeRequest

type GetUserTradesByCurrencyAndTimeRequest struct {
	Count          int64  `json:"count" mapstructure:"count"`
	Currency       string `json:"currency" mapstructure:"currency"`
	EndTimestamp   int64  `json:"end_timestamp" mapstructure:"end_timestamp"`
	StartTimestamp int64  `json:"start_timestamp" mapstructure:"start_timestamp"`
}

type GetUserTradesByCurrencyAndTimeResponse

type GetUserTradesByCurrencyAndTimeResponse struct {
	HasMore bool `json:"has_more" mapstructure:"has_more"`
	Trades  []struct {
		Amount         float64     `json:"amount" mapstructure:"amount"`
		Direction      string      `json:"direction" mapstructure:"direction"`
		Fee            float64     `json:"fee" mapstructure:"fee"`
		FeeCurrency    string      `json:"fee_currency" mapstructure:"fee_currency"`
		IndexPrice     float64     `json:"index_price" mapstructure:"index_price"`
		InstrumentName string      `json:"instrument_name" mapstructure:"instrument_name"`
		Iv             float64     `json:"iv" mapstructure:"iv"`
		Liquidity      string      `json:"liquidity" mapstructure:"liquidity"`
		MatchingID     interface{} `json:"matching_id" mapstructure:"matching_id"`
		OrderID        string      `json:"order_id" mapstructure:"order_id"`
		OrderType      string      `json:"order_type" mapstructure:"order_type"`
		Price          float64     `json:"price" mapstructure:"price"`
		SelfTrade      bool        `json:"self_trade" mapstructure:"self_trade"`
		State          string      `json:"state" mapstructure:"state"`
		TickDirection  int64       `json:"tick_direction" mapstructure:"tick_direction"`
		Timestamp      int64       `json:"timestamp" mapstructure:"timestamp"`
		TradeID        string      `json:"trade_id" mapstructure:"trade_id"`
		TradeSeq       int64       `json:"trade_seq" mapstructure:"trade_seq"`
	} `json:"trades" mapstructure:"trades"`
}

type GetUserTradesByCurrencyRequest

type GetUserTradesByCurrencyRequest struct {
	Count    int64  `json:"count" mapstructure:"count"`
	Currency string `json:"currency" mapstructure:"currency"`
	StartID  string `json:"start_id" mapstructure:"start_id"`
}

type GetUserTradesByCurrencyResponse

type GetUserTradesByCurrencyResponse struct {
	HasMore bool `json:"has_more" mapstructure:"has_more"`
	Trades  []struct {
		Amount         int64       `json:"amount" mapstructure:"amount"`
		Direction      string      `json:"direction" mapstructure:"direction"`
		Fee            float64     `json:"fee" mapstructure:"fee"`
		FeeCurrency    string      `json:"fee_currency" mapstructure:"fee_currency"`
		IndexPrice     float64     `json:"index_price" mapstructure:"index_price"`
		InstrumentName string      `json:"instrument_name" mapstructure:"instrument_name"`
		Iv             float64     `json:"iv" mapstructure:"iv"`
		Liquidity      string      `json:"liquidity" mapstructure:"liquidity"`
		MatchingID     interface{} `json:"matching_id" mapstructure:"matching_id"`
		OrderID        string      `json:"order_id" mapstructure:"order_id"`
		OrderType      string      `json:"order_type" mapstructure:"order_type"`
		Price          float64     `json:"price" mapstructure:"price"`
		SelfTrade      bool        `json:"self_trade" mapstructure:"self_trade"`
		State          string      `json:"state" mapstructure:"state"`
		TickDirection  int64       `json:"tick_direction" mapstructure:"tick_direction"`
		Timestamp      int64       `json:"timestamp" mapstructure:"timestamp"`
		TradeID        string      `json:"trade_id" mapstructure:"trade_id"`
		TradeSeq       int64       `json:"trade_seq" mapstructure:"trade_seq"`
	} `json:"trades" mapstructure:"trades"`
}

type GetUserTradesByInstrumentAndTimeRequest

type GetUserTradesByInstrumentAndTimeRequest struct {
	EndTimestamp   int64  `json:"end_timestamp" mapstructure:"end_timestamp"`
	InstrumentName string `json:"instrument_name" mapstructure:"instrument_name"`
	StartTimestamp int64  `json:"start_timestamp" mapstructure:"start_timestamp"`
}

type GetUserTradesByInstrumentAndTimeResponse

type GetUserTradesByInstrumentAndTimeResponse struct {
	HasMore bool `json:"has_more" mapstructure:"has_more"`
	Trades  []struct {
		Amount         int64       `json:"amount" mapstructure:"amount"`
		Direction      string      `json:"direction" mapstructure:"direction"`
		Fee            int64       `json:"fee" mapstructure:"fee"`
		FeeCurrency    string      `json:"fee_currency" mapstructure:"fee_currency"`
		IndexPrice     float64     `json:"index_price" mapstructure:"index_price"`
		InstrumentName string      `json:"instrument_name" mapstructure:"instrument_name"`
		Liquidity      string      `json:"liquidity" mapstructure:"liquidity"`
		MatchingID     interface{} `json:"matching_id" mapstructure:"matching_id"`
		OrderID        string      `json:"order_id" mapstructure:"order_id"`
		OrderType      string      `json:"order_type" mapstructure:"order_type"`
		Price          int64       `json:"price" mapstructure:"price"`
		SelfTrade      bool        `json:"self_trade" mapstructure:"self_trade"`
		State          string      `json:"state" mapstructure:"state"`
		TickDirection  int64       `json:"tick_direction" mapstructure:"tick_direction"`
		Timestamp      int64       `json:"timestamp" mapstructure:"timestamp"`
		TradeID        string      `json:"trade_id" mapstructure:"trade_id"`
		TradeSeq       int64       `json:"trade_seq" mapstructure:"trade_seq"`
	} `json:"trades" mapstructure:"trades"`
}

type GetUserTradesByInstrumentRequest

type GetUserTradesByInstrumentRequest struct {
	Count          int64  `json:"count" mapstructure:"count"`
	InstrumentName string `json:"instrument_name" mapstructure:"instrument_name"`
	StartSeq       int64  `json:"start_seq" mapstructure:"start_seq"`
}

type GetUserTradesByInstrumentResponse

type GetUserTradesByInstrumentResponse struct {
	HasMore bool `json:"has_more" mapstructure:"has_more"`
	Trades  []struct {
		Amount         int64       `json:"amount" mapstructure:"amount"`
		Direction      string      `json:"direction" mapstructure:"direction"`
		Fee            int64       `json:"fee" mapstructure:"fee"`
		FeeCurrency    string      `json:"fee_currency" mapstructure:"fee_currency"`
		IndexPrice     float64     `json:"index_price" mapstructure:"index_price"`
		InstrumentName string      `json:"instrument_name" mapstructure:"instrument_name"`
		Liquidity      string      `json:"liquidity" mapstructure:"liquidity"`
		MatchingID     interface{} `json:"matching_id" mapstructure:"matching_id"`
		OrderID        string      `json:"order_id" mapstructure:"order_id"`
		OrderType      string      `json:"order_type" mapstructure:"order_type"`
		Price          float64     `json:"price" mapstructure:"price"`
		SelfTrade      bool        `json:"self_trade" mapstructure:"self_trade"`
		State          string      `json:"state" mapstructure:"state"`
		TickDirection  int64       `json:"tick_direction" mapstructure:"tick_direction"`
		Timestamp      int64       `json:"timestamp" mapstructure:"timestamp"`
		TradeID        string      `json:"trade_id" mapstructure:"trade_id"`
		TradeSeq       int64       `json:"trade_seq" mapstructure:"trade_seq"`
	} `json:"trades" mapstructure:"trades"`
}

type GetUserTradesByOrderRequest

type GetUserTradesByOrderRequest struct {
	OrderID string `json:"order_id" mapstructure:"order_id"`
}

type GetUserTradesByOrderResponse

type GetUserTradesByOrderResponse []struct {
	Amount         int64       `json:"amount" mapstructure:"amount"`
	Direction      string      `json:"direction" mapstructure:"direction"`
	Fee            float64     `json:"fee" mapstructure:"fee"`
	FeeCurrency    string      `json:"fee_currency" mapstructure:"fee_currency"`
	IndexPrice     float64     `json:"index_price" mapstructure:"index_price"`
	InstrumentName string      `json:"instrument_name" mapstructure:"instrument_name"`
	Liquidity      string      `json:"liquidity" mapstructure:"liquidity"`
	MatchingID     interface{} `json:"matching_id" mapstructure:"matching_id"`
	OrderID        string      `json:"order_id" mapstructure:"order_id"`
	OrderType      string      `json:"order_type" mapstructure:"order_type"`
	Price          float64     `json:"price" mapstructure:"price"`
	SelfTrade      bool        `json:"self_trade" mapstructure:"self_trade"`
	State          string      `json:"state" mapstructure:"state"`
	TickDirection  int64       `json:"tick_direction" mapstructure:"tick_direction"`
	Timestamp      int64       `json:"timestamp" mapstructure:"timestamp"`
	TradeID        string      `json:"trade_id" mapstructure:"trade_id"`
	TradeSeq       int64       `json:"trade_seq" mapstructure:"trade_seq"`
}

type GetWithdrawalsRequest

type GetWithdrawalsRequest struct {
	Count    int64  `json:"count" mapstructure:"count"`
	Currency string `json:"currency" mapstructure:"currency"`
	Offset   int64  `json:"offset" mapstructure:"offset"`
}

type GetWithdrawalsResponse

type GetWithdrawalsResponse struct {
	Count int64 `json:"count" mapstructure:"count"`
	Data  []struct {
		Address            string      `json:"address" mapstructure:"address"`
		Amount             float64     `json:"amount" mapstructure:"amount"`
		ConfirmedTimestamp interface{} `json:"confirmed_timestamp" mapstructure:"confirmed_timestamp"`
		CreatedTimestamp   int64       `json:"created_timestamp" mapstructure:"created_timestamp"`
		Currency           string      `json:"currency" mapstructure:"currency"`
		Fee                float64     `json:"fee" mapstructure:"fee"`
		ID                 int64       `json:"id" mapstructure:"id"`
		Priority           float64     `json:"priority" mapstructure:"priority"`
		State              string      `json:"state" mapstructure:"state"`
		TransactionID      interface{} `json:"transaction_id" mapstructure:"transaction_id"`
		UpdatedTimestamp   int64       `json:"updated_timestamp" mapstructure:"updated_timestamp"`
	} `json:"data" mapstructure:"data"`
}

type SellRequest

type SellRequest struct {
	Amount         int64   `json:"amount" mapstructure:"amount"`
	InstrumentName string  `json:"instrument_name" mapstructure:"instrument_name"`
	Price          float64 `json:"price" mapstructure:"price"`
	StopPrice      int64   `json:"stop_price" mapstructure:"stop_price"`
	Trigger        string  `json:"trigger" mapstructure:"trigger"`
	Type           string  `json:"type" mapstructure:"type"`
}

type SellResponse

type SellResponse struct {
	Order struct {
		Amount              int64   `json:"amount" mapstructure:"amount"`
		API                 bool    `json:"api" mapstructure:"api"`
		CreationTimestamp   int64   `json:"creation_timestamp" mapstructure:"creation_timestamp"`
		Direction           string  `json:"direction" mapstructure:"direction"`
		InstrumentName      string  `json:"instrument_name" mapstructure:"instrument_name"`
		IsLiquidation       bool    `json:"is_liquidation" mapstructure:"is_liquidation"`
		Label               string  `json:"label" mapstructure:"label"`
		LastUpdateTimestamp int64   `json:"last_update_timestamp" mapstructure:"last_update_timestamp"`
		MaxShow             int64   `json:"max_show" mapstructure:"max_show"`
		OrderID             string  `json:"order_id" mapstructure:"order_id"`
		OrderState          string  `json:"order_state" mapstructure:"order_state"`
		OrderType           string  `json:"order_type" mapstructure:"order_type"`
		PostOnly            bool    `json:"post_only" mapstructure:"post_only"`
		Price               float64 `json:"price" mapstructure:"price"`
		ProfitLoss          int64   `json:"profit_loss" mapstructure:"profit_loss"`
		ReduceOnly          bool    `json:"reduce_only" mapstructure:"reduce_only"`
		StopPrice           int64   `json:"stop_price" mapstructure:"stop_price"`
		TimeInForce         string  `json:"time_in_force" mapstructure:"time_in_force"`
		Trigger             string  `json:"trigger" mapstructure:"trigger"`
		Triggered           bool    `json:"triggered" mapstructure:"triggered"`
	} `json:"order" mapstructure:"order"`
	Trades []interface{} `json:"trades" mapstructure:"trades"`
}

type SetAnnouncementAsReadRequest

type SetAnnouncementAsReadRequest struct {
	AnnouncementID int64 `json:"announcement_id" mapstructure:"announcement_id"`
}

type SetAnnouncementAsReadResponse

type SetAnnouncementAsReadResponse string

type SetEmailForSubaccountRequest

type SetEmailForSubaccountRequest struct {
	Email string `json:"email" mapstructure:"email"`
	Sid   int64  `json:"sid" mapstructure:"sid"`
}

type SetEmailForSubaccountResponse

type SetEmailForSubaccountResponse string

type SetEmailLanguageRequest

type SetEmailLanguageRequest struct {
	Language string `json:"language" mapstructure:"language"`
}

type SetEmailLanguageResponse

type SetEmailLanguageResponse string

type SetPasswordForSubaccountRequest

type SetPasswordForSubaccountRequest struct {
	Password string `json:"password" mapstructure:"password"`
	Sid      int64  `json:"sid" mapstructure:"sid"`
}

type SetPasswordForSubaccountResponse

type SetPasswordForSubaccountResponse string

type SubmitTransferToSubaccountRequest

type SubmitTransferToSubaccountRequest struct {
	Amount      float64 `json:"amount" mapstructure:"amount"`
	Currency    string  `json:"currency" mapstructure:"currency"`
	Destination int64   `json:"destination" mapstructure:"destination"`
}

type SubmitTransferToSubaccountResponse

type SubmitTransferToSubaccountResponse struct {
	Amount           float64 `json:"amount" mapstructure:"amount"`
	CreatedTimestamp int64   `json:"created_timestamp" mapstructure:"created_timestamp"`
	Currency         string  `json:"currency" mapstructure:"currency"`
	Direction        string  `json:"direction" mapstructure:"direction"`
	ID               int64   `json:"id" mapstructure:"id"`
	OtherSide        string  `json:"other_side" mapstructure:"other_side"`
	State            string  `json:"state" mapstructure:"state"`
	Type             string  `json:"type" mapstructure:"type"`
	UpdatedTimestamp int64   `json:"updated_timestamp" mapstructure:"updated_timestamp"`
}

type SubmitTransferToUserRequest

type SubmitTransferToUserRequest struct {
	Amount      float64 `json:"amount" mapstructure:"amount"`
	Currency    string  `json:"currency" mapstructure:"currency"`
	Destination string  `json:"destination" mapstructure:"destination"`
}

type SubmitTransferToUserResponse

type SubmitTransferToUserResponse struct {
	Amount           float64 `json:"amount" mapstructure:"amount"`
	CreatedTimestamp int64   `json:"created_timestamp" mapstructure:"created_timestamp"`
	Currency         string  `json:"currency" mapstructure:"currency"`
	Direction        string  `json:"direction" mapstructure:"direction"`
	ID               int64   `json:"id" mapstructure:"id"`
	OtherSide        string  `json:"other_side" mapstructure:"other_side"`
	State            string  `json:"state" mapstructure:"state"`
	Type             string  `json:"type" mapstructure:"type"`
	UpdatedTimestamp int64   `json:"updated_timestamp" mapstructure:"updated_timestamp"`
}

type SubscribeRequest

type SubscribeRequest struct {
	Channels []string `json:"channels" mapstructure:"channels"`
}

type SubscribeResponse

type SubscribeResponse []string

type ToggleNotificationsFromSubaccountRequest

type ToggleNotificationsFromSubaccountRequest struct {
	Sid   int64 `json:"sid" mapstructure:"sid"`
	State bool  `json:"state" mapstructure:"state"`
}

type ToggleNotificationsFromSubaccountResponse

type ToggleNotificationsFromSubaccountResponse string

type ToggleSubaccountLoginRequest

type ToggleSubaccountLoginRequest struct {
	Sid   int64  `json:"sid" mapstructure:"sid"`
	State string `json:"state" mapstructure:"state"`
}

type ToggleSubaccountLoginResponse

type ToggleSubaccountLoginResponse string

type UnsubscribeRequest

type UnsubscribeRequest struct {
	Channels []string `json:"channels" mapstructure:"channels"`
}

type UnsubscribeResponse

type UnsubscribeResponse []string

type WithdrawRequest

type WithdrawRequest struct {
	Address  string  `json:"address" mapstructure:"address"`
	Amount   float64 `json:"amount" mapstructure:"amount"`
	Currency string  `json:"currency" mapstructure:"currency"`
	Priority string  `json:"priority" mapstructure:"priority"`
}

type WithdrawResponse

type WithdrawResponse struct {
	Address            string      `json:"address" mapstructure:"address"`
	Amount             float64     `json:"amount" mapstructure:"amount"`
	ConfirmedTimestamp interface{} `json:"confirmed_timestamp" mapstructure:"confirmed_timestamp"`
	CreatedTimestamp   int64       `json:"created_timestamp" mapstructure:"created_timestamp"`
	Currency           string      `json:"currency" mapstructure:"currency"`
	Fee                float64     `json:"fee" mapstructure:"fee"`
	ID                 int64       `json:"id" mapstructure:"id"`
	Priority           int64       `json:"priority" mapstructure:"priority"`
	State              string      `json:"state" mapstructure:"state"`
	TransactionID      interface{} `json:"transaction_id" mapstructure:"transaction_id"`
	UpdatedTimestamp   int64       `json:"updated_timestamp" mapstructure:"updated_timestamp"`
}

Source Files

Jump to

Keyboard shortcuts

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