margin

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CrossMarginAccountsBalance

type CrossMarginAccountsBalance struct {
	Id             int64  `json:"id"`
	Type           string `json:"type"`
	State          string `json:"state"`
	AcctBalanceSum string `json:"acct-balance-sum"`
	DebtBalanceSum string `json:"debt-balance-sum"`
	RiskRate       string `json:"risk-rate"`
	List           []struct {
		Currency string `json:"currency"`
		Type     string `json:"type"`
		Balance  string `json:"balance"`
	}
}

type CrossMarginAccountsBalanceResponse

type CrossMarginAccountsBalanceResponse struct {
	Status string                      `json:"status"`
	Data   *CrossMarginAccountsBalance `json:"data"`
}

type CrossMarginGeneraReplaylLoan

type CrossMarginGeneraReplaylLoan struct {
	RepayId   int64 `json:"repayId"`
	RepayTime int64 `json:"repayTime"`
}

type CrossMarginGeneraReplaylLoanRecord

type CrossMarginGeneraReplaylLoanRecord struct {
	RepayId      int64     `json:"repayId"`
	RepayTime    int64     `json:"repayTime"`
	AccountId    int64     `json:"accountId"`
	Currency     string    `json:"currency"`
	RepaidAmount string    `json:"repaidAmount"`
	TransactIds  *Transact `json:"transactIds"`
}

type CrossMarginGeneralReplayLoanOptionalRequest

type CrossMarginGeneralReplayLoanOptionalRequest struct {
	AccountId  string `json:"accountId"`
	Currency   string `json:"currency"`
	Amount     string `json:"amount"`
	TransactId string `json:"transactId"`
}

type CrossMarginGeneralReplayLoanRecordsOptionalRequest

type CrossMarginGeneralReplayLoanRecordsOptionalRequest struct {
	RepayId   string `json:"repayId"`
	AccountId string `json:"accountId"`
	Currency  string `json:"currency"`
	StartDate int64  `json:"startDate"`
	EndDate   int64  `json:"endDate"`
	Sort      string `json:"sort"`
	Limit     int    `json:"limit"`
	FromId    int64  `json:"fromId"`
}

type CrossMarginGeneralReplyLoanRecordsResponse

type CrossMarginGeneralReplyLoanRecordsResponse struct {
	Code int                                  `json:"code"`
	Data []CrossMarginGeneraReplaylLoanRecord `json:"data"`
}

type CrossMarginGeneralReplyLoanResponse

type CrossMarginGeneralReplyLoanResponse struct {
	Code int                            `json:"code"`
	Data []CrossMarginGeneraReplaylLoan `json:"data"`
}

type CrossMarginLoanInfo

type CrossMarginLoanInfo struct {
	Currency     string `json:"currency"`
	InterestRate string `json:"interest-rate"`
	MinLoanAmt   string `json:"min-loan-amt"`
	MaxLoanAmt   string `json:"max-loan-amt"`
	LoanableAmt  string `json:"loanable-amt"`
	ActualRate   string `json:"actual-rate"`
}

type CrossMarginLoanOrder

type CrossMarginLoanOrder struct {
	Id              int64  `json:"id"`
	UserId          int64  `json:"user-id"`
	AccountId       int64  `json:"account-id"`
	Currency        string `json:"currency"`
	LoanAmount      string `json:"loan-amount"`
	LoanBalance     string `json:"loan-balance"`
	InterestAmount  string `json:"interest-amount"`
	InterestBalance string `json:"interest-balance"`
	CreatedAt       int64  `json:"created-at"`
	AccruedAt       int64  `json:"accrued-at"`
	State           string `json:"state"`
	FilledPoints    string `json:"filled-points"`
	FilledHt        string `json:"filled-ht"`
}

type CrossMarginLoanOrdersOptionalRequest

type CrossMarginLoanOrdersOptionalRequest struct {
	StartDate string
	EndDate   string
	Currency  string
	State     string
	From      string
	Direct    string
	Size      string
	SubUid    string
}

type CrossMarginLoanOrdersResponse

type CrossMarginLoanOrdersResponse struct {
	Status string                 `json:"status"`
	Data   []CrossMarginLoanOrder `json:"data"`
}

type CrossMarginOrdersRequest

type CrossMarginOrdersRequest struct {
	Currency string `json:"currency"`
	Amount   string `json:"amount"`
}

type CrossMarginTransferRequest

type CrossMarginTransferRequest struct {
	Currency string `json:"currency"`
	Amount   string `json:"amount"`
}

type GetCrossMarginLoanInfoResponse

type GetCrossMarginLoanInfoResponse struct {
	Status string                `json:"status"`
	Data   []CrossMarginLoanInfo `json:"data"`
}

type GetIsolatedMarginLoanInfoResponse

type GetIsolatedMarginLoanInfoResponse struct {
	Status string                   `json:"status"`
	Data   []IsolatedMarginLoanInfo `json:"data"`
}

type GetMarginLoanInfoOptionalRequest

type GetMarginLoanInfoOptionalRequest struct {
	Symbols string
}

type IsolatedMarginAccountsBalance

type IsolatedMarginAccountsBalance struct {
	Id       int64  `json:"id"`
	Type     string `json:"type"`
	State    string `json:"state"`
	Symbol   string `json:"symbol"`
	FlPrice  string `json:"fl-price"`
	FlType   string `json:"fl-type"`
	RiskRate string `json:"risk-rate"`
	List     []struct {
		Currency string `json:"currency"`
		Type     string `json:"type"`
		Balance  string `json:"balance"`
	}
}

type IsolatedMarginAccountsBalanceResponse

type IsolatedMarginAccountsBalanceResponse struct {
	Status string                          `json:"status"`
	Data   []IsolatedMarginAccountsBalance `json:"data"`
}

type IsolatedMarginLoanInfo

type IsolatedMarginLoanInfo struct {
	Symbol     string `json:"symbol"`
	Currencies []struct {
		Currency     string `json:"currency"`
		InterestRate string `json:"interest-rate"`
		MinLoanAmt   string `json:"min-loan-amt"`
		MaxLoanAmt   string `json:"max-loan-amt"`
		LoanableAmt  string `json:"loanable-amt"`
		ActualRate   string `json:"actual-rate"`
	}
}

type IsolatedMarginLoanOrder

type IsolatedMarginLoanOrder struct {
	Id              int64  `json:"id"`
	UserId          int64  `json:"user-id"`
	AccountId       int64  `json:"account-id"`
	Symbol          string `json:"symbol"`
	Currency        string `json:"currency"`
	LoanAmount      string `json:"loan-amount"`
	LoanBalance     string `json:"loan-balance"`
	InterestRate    string `json:"interest-rate"`
	InterestAmount  string `json:"interest-amount"`
	InterestBalance string `json:"interest-balance"`
	CreatedAt       int64  `json:"created-at"`
	AccruedAt       int64  `json:"accrued-at"`
	State           string `json:"state"`
}

type IsolatedMarginLoanOrdersOptionalRequest

type IsolatedMarginLoanOrdersOptionalRequest struct {
	StartDate string
	EndDate   string
	States    string
	From      string
	Direct    string
	Size      string
	SubUid    int
}

type IsolatedMarginLoanOrdersResponse

type IsolatedMarginLoanOrdersResponse struct {
	Status string                    `json:"status"`
	Data   []IsolatedMarginLoanOrder `json:"data"`
}

type IsolatedMarginOrdersRequest

type IsolatedMarginOrdersRequest struct {
	Symbol   string `json:"symbol"`
	Currency string `json:"currency"`
	Amount   string `json:"amount"`
}

type IsolatedMarginTransferRequest

type IsolatedMarginTransferRequest struct {
	Symbol   string `json:"symbol"`
	Currency string `json:"currency"`
	Amount   string `json:"amount"`
}

type MarginAccountsBalanceOptionalRequest

type MarginAccountsBalanceOptionalRequest struct {
	Symbol string
	SubUid int
}

type MarginOrdersRepayRequest

type MarginOrdersRepayRequest struct {
	Amount string `json:"amount"`
}

type MarginOrdersRepayResponse

type MarginOrdersRepayResponse struct {
	Status string `json:"status"`
	Data   int    `json:"data"`
}

type MarginOrdersResponse

type MarginOrdersResponse struct {
	Status string `json:"status"`
	Data   int    `json:"data"`
}

type Transact

type Transact struct {
	TransactId      int64  `json:"transactId"`
	RepaidPrincipal string `json:"repaidPrincipal"`
	RepaidInterest  string `json:"repaidInterest"`
	PaidHt          string `json:"paidHt"`
	PaidPoint       string `json:"paidPoint"`
}

type TransferResponse

type TransferResponse struct {
	Status string `json:"status"`
	Data   int    `json:"data"`
}

Jump to

Keyboard shortcuts

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