Skip to content

Trades Storage

The Trades Storage worker consolidates daily portfolio-level trades into a single datastore, updating it with each run. It checks each trade's ID to detect duplicates and track whether each trade has already been inserted into its target portfolio.


Parameters

Input

Field Description
Incoming Trades Portfolio-level trade data, usually from a Split Trades worker. Accepts Upstream Data, Fixed Datastore, or Get Latest


Output

Field Description
Name Output datastore name. Accepts Template Text or Upstream Data
Date Output datastore date. Accepts Fixed Date or Upstream Data. Defaults to the trades date
Workspace Workspace where the datastore will be saved. Accepts Fixed Workspace
Tags Output datastore tags. Accepts Fixed Tags or Upstream Data
Storage Mode How the result is persisted. Options: Transient, Update


Result

Once the worker finishes successfully, it returns a datastore with all trades processed during the day at the portfolio level.

  • Datastore (datastore)
  • ID (string)
  • Name (string)
  • Date (date)
  • Tags (list)
  • Data (list)