Get historical data for an account

The endpoint enables you to return a daily snapshot of an account each day over a given period of time.

get
/dailyAccounts/{vaultAddress}/{accountAddress}

getDailyAccountCTOFunction

Authorizations
Path parameters
vaultAddressstring · EthAddrRequired
accountAddressstring · EthAddrRequired
Query parameters
startDayStrstringRequired

The start day in format YYYY-MM-DD or DD-MM-YYYY

Example: 2025-02-21Pattern: ^(\d{4}-\d{2}-\d{2}|\d{2}-\d{2}-\d{4})$
endDayStrstringRequired

The end day in format YYYY-MM-DD or DD-MM-YYYY

Example: 2025-03-21Pattern: ^(\d{4}-\d{2}-\d{2}|\d{2}-\d{2}-\d{4})$
Responses
200

Get Daily Account CTO

application/json
get
/dailyAccounts/{vaultAddress}/{accountAddress}
GET /dailyAccounts/{vaultAddress}/{accountAddress}?startDayStr=2025-02-21&endDayStr=2025-03-21 HTTP/1.1
Host: api.open-trade.io
x-api-key: YOUR_API_KEY
Accept: */*
200

Get Daily Account CTO

{
  "poolAddress": "text",
  "accountAddress": "text",
  "vaultAccountCTO": {
    "version": "",
    "id": "",
    "blockNumber": 0,
    "timestamp": 0,
    "timestampDateString": "",
    "timestampString": "",
    "dayNumber": 0,
    "timeOfDay": 0,
    "poolType": 0,
    "poolAddr": "0x844a06370232f502df91205c2668ede37364dd50",
    "vaultName": "",
    "liquidityAssetAddr": "0xa3a331e7d5494f36a0ce04290aa2d71bd75cbb03",
    "accountAddr": "0x3b0e54ed82527d1acdeda8101286285af7870b60",
    "tokenBalance": "24000000000",
    "principalEarningInterest": "91000000000",
    "liquidityTokenSymbol": "USDC",
    "currencyLabel": "USDC",
    "poolAddrOffchain": "0x6ac3325252d034213ccd2af32d5cc0d8e676ed1b",
    "displayName": "",
    "timestampOffchain": 0,
    "collateral": "",
    "benchmarkRate": "",
    "transferInDays": 0,
    "transferOutDays": 0,
    "advisoryFeeRate": 0,
    "platformFeeRate": 0,
    "liquidityFeeRate": 0,
    "contractualCurrency": "",
    "minimumTransferAmount": 0,
    "maximumTransferAmount": 0,
    "earlyWithdrawalProcessingPeriod": 0,
    "automaticRollover": "",
    "rolloverCollateral": "",
    "liquidityBuffer": "23000000000",
    "interestRate": "",
    "dailyInterestRate": "",
    "maxWithdrawRequest": "46000000000",
    "maxRedeemRequest": "99000000000",
    "requestedSharesOf": "2000000000",
    "requestedAssetsOf": "23000000000",
    "interestAccrued": "46000000000",
    "assetsDeposited": "15000000000",
    "assetsWithdrawn": "43000000000",
    "sharesTransitioningIn": "0",
    "assetsTransitioningIn": "40000000000",
    "assetsDueForWithdraws": "15000000000",
    "accountOutstandingLoanPrincipals": "25000000000",
    "interestInDay": "49000000000"
  }
}

Schema

Last updated