Skip to content

Latest commit

 

History

History
43 lines (34 loc) · 1.91 KB

File metadata and controls

43 lines (34 loc) · 1.91 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
autoRenew Boolean Auto renew the loan on expiration [optional]
currencyPair String Currency pair. Required for borrowing side [optional]
left String Amount not lending out [optional] [readonly]
repaid String Repaid amount [optional] [readonly]
paidInterest String Repaid interest [optional] [readonly]
unpaidInterest String Interest not repaid [optional] [readonly]
feeRate String Loan fee rate [optional]
origId String Original loan ID if the loan is auto-renewed. Equal to `id` if not [optional]

Enum: StatusEnum

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

Enum: SideEnum

Name Value
LEND "lend"
BORROW "borrow"