You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[Tardis](https://tardis.dev)|`TARDIS`| Data Provider ||[Guide](https://nautilustrader.io/docs/latest/integrations/tardis.html)|
140
+
|[Tardis](https://tardis.dev)|`TARDIS`| Data Provider ||[Guide](https://nautilustrader.io/docs/latest/integrations/tardis.html)|
140
141
141
142
-**ID**: The default client ID for the integrations adapter clients.
142
143
-**Type**: The type of integration (often the venue type).
|`TICK`| Aggregation of a number of ticks. | Threshold |
75
+
|`TICK_IMBALANCE`| Aggregation of the buy/sell imbalance of ticks. | Threshold |
76
+
|`TICK_RUNS`| Aggregation of sequential buy/sell runs of ticks. | Information |
77
+
|`VOLUME`| Aggregation of traded volume. | Threshold |
78
+
|`VOLUME_IMBALANCE`| Aggregation of the buy/sell imbalance of traded volume. | Threshold |
79
+
|`VOLUME_RUNS`| Aggregation of sequential runs of buy/sell traded volume. | Information |
80
+
|`VALUE`| Aggregation of the notional value of trades (also known as "Dollar bars"). | Threshold |
81
+
|`VALUE_IMBALANCE`| Aggregation of the buy/sell imbalance of trading by notional value. | Information |
82
+
|`VALUE_RUNS`| Aggregation of sequential buy/sell runs of trading by notional value. | Threshold |
83
+
|`MILLISECOND`| Aggregation of time intervals with millisecond granularity. | Time |
84
+
|`SECOND`| Aggregation of time intervals with second granularity. | Time |
85
+
|`MINUTE`| Aggregation of time intervals with minute granularity. | Time |
86
+
|`HOUR`| Aggregation of time intervals with hour granularity. | Time |
87
+
|`DAY`| Aggregation of time intervals with day granularity. | Time |
88
+
|`WEEK`| Aggregation of time intervals with week granularity. | Time |
89
+
|`MONTH`| Aggregation of time intervals with month granularity. | Time |
90
+
91
+
### Bar types
92
+
93
+
NautilusTrader defines a unique *bar type* (`BarType`) based on the following components:
94
+
95
+
-**Instrument ID** (`InstrumentId`): Specifies the particular instrument for the bar.
96
+
-**Bar Specification** (`BarSpecification`):
97
+
-`step`: Defines the interval or frequency of each bar.
98
+
-`aggregation`: Specifies the method used for data aggregation (see the list above).
99
+
-`price_type`: Indicates the price basis of the bar (e.g., bid, ask, mid, last).
100
+
-**Aggregation Source** (`AggregationSource`): Indicates whether the bar was aggregated internally (within Nautilus) or externally (by a trading venue or data provider).
101
+
102
+
Bar data can be aggregated either internally or externally:
103
+
104
+
-`INTERNAL`: The bar is aggregated inside the local Nautilus system boundary.
105
+
-`EXTERNAL`: The bar is aggregated outside the local Nautilus system boundary (typically by a trading venue or data provider).
106
+
107
+
Bar types can also be classified as either *standard* or *composite*:
108
+
109
+
-**Standard**: Generated from granular market data, such as quotes or trade ticks.
110
+
-**Composite**: Derived from a higher-granularity bar type through subsampling.
111
+
112
+
### Defining standard bars
113
+
114
+
You can define bar types from strings using the following convention:
For example, to define a `BarType` for AAPL trades (last price) on Nasdaq (XNAS) using a 5-minute interval, aggregated from trades locally by Nautilus:
- The derived bar type must use an `INTERNAL` aggregation source (since this is how the bar is aggregated).
132
+
- The sampled bar type must have a higher granularity than the derived bar type.
133
+
- The sampled instrument ID is inferred to match that of the derived bar type.
134
+
- Composite bars can be aggregated *from*`INTERNAL` or `EXTERNAL` aggregation sources.
135
+
136
+
For example, to define a `BarType` for AAPL trades (last price) on Nasdaq (XNAS) using a 5-minute interval, aggregated locally by Nautilus, from 1-minute interval bars aggregated externally:
The platform ensures consistency by flowing data through the same pathways across all system [environment contexts](/concepts/architecture.md#environment-contexts)
0 commit comments