GET GetByGenericDate()

Retrieves data filtered by a logical process date (such as ‘first’, ‘last’, or ‘prev’) across multiple datasets.


Base URL

https://api.wealthtechs.com/v2/odata/

Supported Resources

This function is available on the following OData resources:

ResourceEndpoint
FxRates/fxrates/GetByGenericDate(date='last')
Prices/prices/GetByGenericDate(date='last')
InterfaceStatuses/interfacestatuses/GetByGenericDate(date='last')
Positions/positions/GetByGenericDate(date='last')
Transactions/transactions/GetByGenericDate(date='last')

Summary

The GetByGenericDate function simplifies querying for time-sensitive data by allowing clients to specify a logical keyword representing a date range anchor instead of a specific date. The system will internally compute the correct date value based on the authenticated user’s data scope.

Technical Notes
  • Results are paginated in sets of 1000 records.
  • JWT authentication is required.
  • Supports $select, $filter, $orderby, $expand (up to depth 4).
  • Non-supported tokens or strings will return an empty result set (200 OK with no records).
Benefits
  • Reduces client-side complexity by avoiding hard-coded or calculated dates.
  • Improves portability of API queries across environments.
  • Enables cleaner, simpler scheduling and automation scripts.
  • Ensures consistency across all date-based queries.

Parameters

NameTypeLocationRequiredDescription
datestringOData URIYesA case-insensitive keyword for a temporal anchor. Valid values: first, last, prev.

Keyword Behavior

KeywordDescription
firstReturns records for the earliest available ProcessDate
lastReturns records for the most recent ProcessDate
prevReturns records for the process date just before last

Authorization

// Authorization via JWT Token.

Authorization: Bearer <YourToken>

Example Usage

GET https://api.wealthtechs.com/v2/odata/Positions/GetByGenericDate(date='last')

// Returns all Position records for the most recent available process date.
GET https://api.wealthtechs.com/v2/odata/Transactions/GetByGenericDate(date='prev')

// Returns Transaction records for the date immediately before the most recent process date.
GET https://api.wealthtechs.com/v2/odata/FxRates/GetByGenericDate(date='first')

// Returns FX Rate records for the earliest recorded process date.

Responses

CodeType
200Success
204No Content
400Bad Request
401Unauthorized