v1

latestOpenAPI 3.0.32026-07-2613529376.3 KB
Crypto Lending - Fixed

Get investments history

The endpoint retrieves an investments history.

<Warning> Rate limit: 1000 requests/10 sec. </Warning> <Note> The API does not cache the response. </Note>
post/api/v4/main-account/smart/investments

Request body

idstring

Investment identifier

tickerstring

Invest plan source currency's ticker

status1 | 2

Investment status (1 - active, 2 - closed)

limitinteger

LIMIT is a special clause used to limit records a particular query can return.

offsetinteger

Use the OFFSET clause to return entries starting from a particular line.

requeststring required

Request signature

nonceinteger required

Unique request identifier

Example request

{
  "id": "0d7b66ff-1909-4938-ab7a-d16d9a64dcd5",
  "ticker": "USDT",
  "status": 1,
  "limit": 100,
  "request": "{{request}}",
  "nonce": 1594297865000
}

Response

Successful response

offsetinteger
limitinteger

Example response

{
  "records": [
    {
      "id": "1232",
      "plan": {
        "id": "1",
        "ticker": "BTC",
        "status": 1,
        "percent": "0.01",
        "duration": 40320,
        "interestTicker": "BTC",
        "interestRatio": "1",
        "minInvestment": "100",
        "maxInvestment": "10000",
        "maxPossibleInvestment": "3000"
      },
      "status": 1,
      "created": 1588345560,
      "updated": 1588345560,
      "paymentTime": 1588345560,
      "amount": "100",
      "interestPaid": "0.01"
    }
  ]
}