Skip to content

Instantly share code, notes, and snippets.

@lmvdz
Created June 24, 2021 13:34
Show Gist options
  • Save lmvdz/7a6445a85d18c683f45d853098df88f4 to your computer and use it in GitHub Desktop.
Save lmvdz/7a6445a85d18c683f45d853098df88f4 to your computer and use it in GitHub Desktop.
Fixed up aggr workspace
{
"createdAt": 1624541168137,
"updatedAt": 1624541281057,
"name": "Default5",
"id": "zvqn",
"states": {
"spot-trades": {
"liquidations": {
"id": "liquidations",
"amount": 100000,
"buyColor": "rgb(103,58,183)",
"sellColor": "rgb(103,58,183)",
"buyAudio": "play(329.63, ratio, ratio * 2, 0, 0.1, 'sine')",
"sellAudio": "play(440, ratio, ratio * 2, 0, 0.1, 'sine')"
},
"thresholds": [
{
"id": "threshold",
"amount": 50000,
"buyColor": "rgb(251,192,45)",
"sellColor": "rgb(233,30,99)",
"buyAudio": "play(659.26, Math.sqrt(ratio) / 10, 0.1 + Math.sqrt(ratio) * 0.23, 0)",
"sellAudio": "play(493.88, Math.sqrt(ratio * 1.5) / 10, 0.1 + Math.sqrt(ratio) * 0.23, 0)"
},
{
"id": "significant",
"amount": 800000,
"buyColor": "rgb(255,167,38)",
"sellColor": "rgb(156,39,176)",
"buyAudio": "play(659.26, 0.05 + Math.sqrt(ratio) / 10, 0.1 + ratio * 0.23, 0);\nplay(830.6, 0.05 + Math.sqrt(ratio) / 10, 0.1 + ratio * 0.23, 0.08)",
"sellAudio": "play(493.88, 0.05 + Math.sqrt(ratio * 1.5) / 10, 0.1 + ratio * 0.1, 0);\nplay(392, 0.05 + Math.sqrt(ratio * 1.5) / 10, 0.1 + ratio * 0.23, 0.08)"
}
],
"audioThreshold": "500000",
"showThresholdsAsTable": true,
"muted": false,
"audioPitch": null,
"audioVolume": null,
"showTradesPairs": false,
"showLogos": true,
"tradeType": "trades",
"multipliers": {},
"maxRows": "250",
"monochromeLogos": false,
"_id": "spot-trades"
},
"perp-trades": {
"liquidations": {
"id": "liquidations",
"amount": 100000,
"buyColor": "rgb(103,58,183)",
"sellColor": "rgb(103,58,183)",
"buyAudio": "play(329.63, ratio, ratio * 2, 0, 0.1, 'sine')",
"sellAudio": "play(440, ratio, ratio * 2, 0, 0.1, 'sine')"
},
"thresholds": [
{
"id": "threshold",
"amount": 50000,
"buyColor": "rgb(251,192,45)",
"sellColor": "rgb(233,30,99)",
"buyAudio": "play(659.26, Math.sqrt(ratio) / 10, 0.1 + Math.sqrt(ratio) * 0.23, 0)",
"sellAudio": "play(493.88, Math.sqrt(ratio * 1.5) / 10, 0.1 + Math.sqrt(ratio) * 0.23, 0)"
},
{
"id": "significant",
"amount": 800000,
"buyColor": "rgb(245,127,23)",
"sellColor": "rgb(156,39,176)",
"buyAudio": "play(659.26, 0.05 + Math.sqrt(ratio) / 10, 0.1 + ratio * 0.23, 0);\nplay(830.6, 0.05 + Math.sqrt(ratio) / 10, 0.1 + ratio * 0.23, 0.08)",
"sellAudio": "play(493.88, 0.05 + Math.sqrt(ratio * 1.5) / 10, 0.1 + ratio * 0.1, 0);\nplay(392, 0.05 + Math.sqrt(ratio * 1.5) / 10, 0.1 + ratio * 0.23, 0.08)"
}
],
"audioThreshold": "500000",
"multipliers": {},
"showThresholdsAsTable": true,
"maxRows": "250",
"muted": false,
"audioPitch": null,
"audioVolume": null,
"showTradesPairs": false,
"tradeType": "both",
"showLogos": true,
"monochromeLogos": true,
"_id": "perp-trades"
},
"panes": {
"_id": "panes",
"layout": [
{
"x": 0,
"y": 0,
"w": 16,
"h": 24,
"i": "pane-chart",
"type": "chart",
"moved": false
},
{
"x": 20,
"y": 0,
"w": 4,
"h": 24,
"i": "spot-trades",
"type": "trades",
"moved": false
},
{
"x": 16,
"y": 0,
"w": 4,
"h": 24,
"i": "perp-trades",
"type": "trades",
"moved": false
}
],
"panes": {
"pane-chart": {
"id": "pane-chart",
"name": "Chart",
"type": "chart",
"markets": [
"BITFINEX:BTCUSD",
"BINANCE:btcusdt",
"OKEX:BTC-USDT",
"KRAKEN:XBT/USD",
"COINBASE:BTC-USD",
"POLONIEX:USDT_BTC",
"HUOBI:btcusdt",
"BITSTAMP:btcusd",
"BITMEX:XBTUSD",
"BITFINEX:BTCF0:USTF0",
"OKEX:BTC-USD-SWAP",
"OKEX:BTC-USDT-SWAP",
"BINANCE_FUTURES:btcusdt",
"BINANCE_FUTURES:btcusd_perp",
"HUOBI:BTC-USD",
"KRAKEN:PI_XBTUSD",
"DERIBIT:BTC-PERPETUAL",
"FTX:BTC-PERP",
"BYBIT:BTCUSD"
]
},
"spot-trades": {
"id": "spot-trades",
"name": "BTCUSD (SPOT)",
"type": "trades",
"markets": [
"BITFINEX:BTCUSD",
"BINANCE:btcusdt",
"OKEX:BTC-USDT",
"KRAKEN:XBT/USD",
"COINBASE:BTC-USD",
"POLONIEX:USDT_BTC",
"HUOBI:btcusdt",
"BITSTAMP:btcusd"
]
},
"perp-trades": {
"id": "perp-trades",
"name": "BTCUSD (PERP)",
"type": "trades",
"markets": [
"BITMEX:XBTUSD",
"BITFINEX:BTCF0:USTF0",
"OKEX:BTC-USD-SWAP",
"OKEX:BTC-USDT-SWAP",
"BINANCE_FUTURES:btcusdt",
"BINANCE_FUTURES:btcusd_perp",
"HUOBI:BTC-USD",
"KRAKEN:PI_XBTUSD",
"DERIBIT:BTC-PERPETUAL",
"FTX:BTC-PERP",
"BYBIT:BTCUSD"
]
}
}
},
"pane-chart": {
"indicatorsErrors": {},
"indicators": {
"cvd": {
"name": "CVD",
"description": "Cumulative Volume Delta",
"script": "plotline(cum(vbuy - vsell))",
"options": {
"priceScaleId": "cvd",
"priceFormat": {
"type": "volume"
},
"color": "#ffe100",
"visible": false
},
"id": "cvd",
"createdAt": 1623585163337,
"updatedAt": null,
"series": [
"cum-vbuy-vsell"
]
},
"liquidations": {
"name": "Liquidations",
"script": "plothistogram(lbuy, color=options.upColor)\nplothistogram(-lsell, color=options.downColor)",
"options": {
"priceFormat": {
"type": "volume"
},
"priceScaleId": "volume_liquidations",
"upColor": "rgba(103,58,183,0.69)",
"downColor": "rgba(255,235,59,0.79)",
"scaleMargins": {
"top": 0.8,
"bottom": 0.1
},
"visible": true
},
"id": "liquidations",
"createdAt": 1623585163337,
"updatedAt": null,
"series": [
"lbuy",
"lsell"
],
"unsavedChanges": true
},
"price": {
"name": "Price",
"script": "plotcandlestick(avg_ohlc(bar))",
"options": {
"priceScaleId": "right",
"priceLineVisible": true,
"lastValueVisible": true,
"borderVisible": false,
"upColor": "rgb(0,188,212)",
"borderUpColor": "rgb(0,188,212)",
"wickUpColor": "rgb(0,100,112)",
"downColor": "rgb(233,30,99)",
"borderDownColor": "rgb(255, 255, 255, .33)",
"wickDownColor": "rgb(112,9,45)",
"visible": true,
"scaleMargins": {
"top": 0,
"bottom": 0.2
},
"priceLineColor": "rgb(255,255,255)",
"priceFormat": {
"type": "price",
"minMove": "0.01",
"precision": 2
}
},
"id": "price",
"createdAt": 1623585163337,
"updatedAt": 1623587880247,
"series": [
"avg-ohlc"
],
"unsavedChanges": true
},
"volume": {
"name": "Volume",
"script": "plothistogram(vbuy + vsell, id=totalvolume)",
"options": {
"priceFormat": {
"type": "volume"
},
"color": "rgba(255, 255, 255, .15)",
"priceScaleId": "volume",
"scaleMargins": {
"top": 0.9,
"bottom": 0
},
"visible": true
},
"id": "volume",
"createdAt": 1623585163337,
"updatedAt": null,
"series": [
"totalvolume"
]
},
"volume_delta": {
"name": "Volume Δ",
"script": "plothistogram({ time: time, value: Math.abs(vbuy-vsell), color: vbuy - vsell > 0 ? options.upColor : options.downColor})",
"options": {
"priceFormat": {
"type": "volume"
},
"upColor": "#3BCA6D",
"downColor": "#EB1E2F",
"priceScaleId": "volume",
"scaleMargins": {
"top": 0.9,
"bottom": 0
},
"visible": true
},
"id": "volume_delta",
"createdAt": 1623585163337,
"updatedAt": null,
"series": [
"vbuy-vsell"
],
"unsavedChanges": true
}
},
"resizingIndicator": null,
"timeframe": 300,
"refreshRate": 500,
"showLegend": true,
"showHorizontalGridlines": false,
"horizontalGridlinesColor": "rgba(255,255,255,.1)",
"showVerticalGridlines": false,
"verticalGridlinesColor": "rgba(255,255,255,.1)",
"showWatermark": true,
"watermarkColor": "rgba(255,255,255,.1)",
"_id": "pane-chart"
},
"settings": {
"_id": "settings",
"preferQuoteCurrencySize": true,
"aggregateTrades": true,
"disableAnimations": false,
"calculateSlippage": "price",
"decimalPrecision": null,
"theme": "dark",
"backgroundColor": "rgb(0,0,0)",
"textColor": "rgb(255,255,255)",
"timezoneOffset": 7200000,
"useAudio": true,
"audioVolume": 1.1,
"audioDelay": false,
"audioPingPong": false,
"audioCompressor": true,
"audioFilter": true,
"settings": [
"stats",
"counters"
],
"recentColors": [
"rgb(255,0,0)",
"rgb(0,175,0)",
"rgb(0,0,0)",
"rgb(255,255,255)",
"rgb(112,9,45)"
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment