-
Notifications
You must be signed in to change notification settings - Fork 55
Expand file tree
/
Copy pathmodel_collateral_order.go
More file actions
46 lines (44 loc) · 2.08 KB
/
model_collateral_order.go
File metadata and controls
46 lines (44 loc) · 2.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
* Gate API
*
* Welcome to Gate API APIv4 provides operations related to spot, margin, and contract trading, including public interfaces for querying market data and authenticated private interfaces for implementing API-based automated trading.
*
* Contact: support@mail.gate.com
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package gateapi
// Collateral order
type CollateralOrder struct {
// Order ID
OrderId int64 `json:"order_id,omitempty"`
// Collateral currency
CollateralCurrency string `json:"collateral_currency,omitempty"`
// Collateral amount
CollateralAmount string `json:"collateral_amount,omitempty"`
// Borrowed currency
BorrowCurrency string `json:"borrow_currency,omitempty"`
// Borrowed amount
BorrowAmount string `json:"borrow_amount,omitempty"`
// Repaid amount
RepaidAmount string `json:"repaid_amount,omitempty"`
// Repaid principal
RepaidPrincipal string `json:"repaid_principal,omitempty"`
// Repaid interest
RepaidInterest string `json:"repaid_interest,omitempty"`
// Initial collateralization rate
InitLtv string `json:"init_ltv,omitempty"`
// Current collateralization rate
CurrentLtv string `json:"current_ltv,omitempty"`
// Liquidation collateralization rate
LiquidateLtv string `json:"liquidate_ltv,omitempty"`
// Order status: - initial: Initial state after placing the order - collateral_deducted: Collateral deduction successful - collateral_returning: Loan failed - Collateral return pending - lent: Loan successful - repaying: Repayment in progress - liquidating: Liquidation in progress - finished: Order completed - closed_liquidated: Liquidation and repayment completed
Status string `json:"status,omitempty"`
// Borrowing time, timestamp in seconds
BorrowTime int64 `json:"borrow_time,omitempty"`
// Outstanding principal and interest (outstanding principal + outstanding interest)
LeftRepayTotal string `json:"left_repay_total,omitempty"`
// Outstanding principal
LeftRepayPrincipal string `json:"left_repay_principal,omitempty"`
// Outstanding interest
LeftRepayInterest string `json:"left_repay_interest,omitempty"`
}