Skip to content

Latest commit

 

History

History
44 lines (35 loc) · 2.02 KB

File metadata and controls

44 lines (35 loc) · 2.02 KB

Loan

Margin loan details

Properties

Name Type Description Notes
id String Loan ID [optional] [readonly]
createTime String Creation time [optional] [readonly]
expireTime String Repay time of the loan. No value will be returned for lending loan [optional] [readonly]
status StatusEnum Loan status open - not fully loaned loaned - all loaned out for lending loan; loaned in for borrowing side finished - loan is finished, either being all repaid or cancelled by the lender auto_repaid - automatically repaid by the system [optional] [readonly]
side SideEnum Loan side
currency String Loan currency
rate String Loan rate. Only rates in [0.0002, 0.002] are supported. Not required in lending. Market rate calculated from recent rates will be used if not set [optional]
amount String Loan amount
days Integer Loan days. Only 10 is supported for now [optional]
autoRenew Boolean Whether to auto renew the loan upon expiration [optional]
currencyPair String Currency pair. Required if borrowing [optional]
left String Amount not lent out yet [optional] [readonly]
repaid String Repaid amount [optional] [readonly]
paidInterest String Repaid interest [optional] [readonly]
unpaidInterest String Outstanding interest yet to be paid [optional] [readonly]
feeRate String Loan fee rate [optional]
origId String Original loan ID of the loan if auto-renewed, otherwise equals to id [optional]
text String User defined custom ID [optional]

Enum: StatusEnum

Name Value
OPEN "open"
LOANED "loaned"
FINISHED "finished"
AUTO_REPAID "auto_repaid"

Enum: SideEnum

Name Value
LEND "lend"
BORROW "borrow"