Utility
Body
loanTokenstring · {policyId}.{assetName}RequiredExample:
Token id of loan token
29d222ce763455e3d7a09a665ce554f00ac89d2e99a1a83d267170c6.4d494ehealthFactornumber · doubleRequiredExample:
Health factor of this loan
1.23borrowRateinteger · nullableOptionalExample:
Borrow rate of this Pool in bais point, used for calculating max loan amount of Fixed Pool
500loanDurationinteger · nullableOptionalExample:
Loan duration in days, used for calculating max loan amount of Fixed Pool
7Responses
200
Success
application/json
codeintegerOptional
response code, 200 is success, other code is not success
traceIdstringOptional
Trace ID of the request (required when request is error). Trace ID is used to trace the root cause of the error quickly.
- Why we need it?, please refer TDD: https://confluence.teko.vn/pages/viewpage.action?pageId=368467363
- Distributed tracing guideline: https://confluence.teko.vn/display/PLAT/Code+example++Golang%2C+Python++for+distributed+tracing+with+Jaeger
- Service mesh guideline: https://confluence.teko.vn/display/PLAT/Expose+metrics+for+kubernetes+services+by+service+mesh
messagestringOptional
response message
default
An unexpected error response
application/json
post
/api/v1/calculate-max-loan-amountBody
loanTokenstring · {policyId}.{assetName}RequiredExample:
Token id of loan token
29d222ce763455e3d7a09a665ce554f00ac89d2e99a1a83d267170c6.4d494eloanAmountstring · bigintRequiredExample:
Loan amount
1231354Responses
200
Success
application/json
codeintegerOptional
response code, 200 is success, other code is not success
traceIdstringOptional
Trace ID of the request (required when request is error). Trace ID is used to trace the root cause of the error quickly.
- Why we need it?, please refer TDD: https://confluence.teko.vn/pages/viewpage.action?pageId=368467363
- Distributed tracing guideline: https://confluence.teko.vn/display/PLAT/Code+example++Golang%2C+Python++for+distributed+tracing+with+Jaeger
- Service mesh guideline: https://confluence.teko.vn/display/PLAT/Expose+metrics+for+kubernetes+services+by+service+mesh
messagestringOptional
response message
default
An unexpected error response
application/json
post
/api/v1/calculate-health-factorLast updated