mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-14 07:26:47 +00:00
* Subscriptions: Add List.AssetPairs * Subscriptions: Add Template and QualifiedChannel These fields separate the concept of what the channel is from the qualified resource name * Subscriptions: Add List.SetStates() * Subscriptions: Add List.QualifiedChannels * Subscriptions: Rename testsubs.EqualLists * Binance: Switch to ExpandTemplates * Binance: Update ConfigTest format * Subscriptions: Test Coverage improvements * Subscriptions: Reenterant List.ExpandTemplates * Subscriptions: Move templates from subscriptions to exchanges * Binance: Inline subscription template and improvements
22 lines
746 B
Cheetah
22 lines
746 B
Cheetah
{{- if eq $.S.Channel "feature1" -}}
|
|
{{/* Case 1: One channel to rule them all */}}
|
|
feature1
|
|
{{- else if eq $.S.Channel "feature2" -}}
|
|
{{/* Case 2: One channel per asset */}}
|
|
{{- range $asset, $pairs := $.AssetPairs }}
|
|
{{ assetName $asset }}-feature2@ {{- $.S.Interval.Short }}
|
|
{{- $.AssetSeparator }}
|
|
{{- end }}
|
|
{{- else if eq $.S.Channel "feature3" }}
|
|
{{/* Case 3: One channel per pair per asset */}}
|
|
{{- range $asset, $pairs := $.AssetPairs }}
|
|
{{- range $pair := $pairs -}}
|
|
{{ assetName $asset }}-{{ $pair.Swap.String -}} -feature3@ {{- $.S.Levels }}
|
|
{{- $.PairSeparator -}}
|
|
{{- end -}}
|
|
{{- $.AssetSeparator -}}
|
|
{{- end -}}
|
|
{{- else if eq $.S.Channel "feature4" }}
|
|
feature4-authed
|
|
{{- end -}}
|