# VD (/scripting/data-types/vd)



```ts
type VolumeDelta = {
  t: number
  value: number
  o?: number
  h?: number
  l?: number
  c?: number
  n?: number
  delta?: number
  cumulative_delta?: number
}
```

MMT VD candles provide `o`, `h`, `l`, `c`, and `n`. Standalone trade-derived live records provide the latest batch `delta` and running `cumulative_delta`. `value` is the normalized current cumulative value in both forms. Timestamps are Unix milliseconds.

```js
const vd = history.source('btc@vd@hyperliquidf@mmt')
const current = history.source('btc@vd@hyperliquidf@mmt', 0)
```

See [VD Source](/scripting/sources/vd) for provider configuration and MMT buckets.
