aggr icon indicating copy to clipboard operation
aggr copied to clipboard

set markets from url (ex aggr.trade/btcusd)

Open Tucsky opened this issue 4 years ago • 14 comments

proposal

aggr.trade/btcusd v3.aggr.trade/btcusd+ethusd

should automatically create OR use existing workspace listening to given symbols

  • Rules for matching (what exchanges and case of stablecoins quote currency names) We could use user preferences to know which exchanges should be included in the matching, that would require to take that part of the settings out of the workspace to the main indexedDB database Making search preferences (ex: no distinction of stablecoin currency) or exchanges preferences (ex: disabled exchange) common across all workspaces

  • Base workspace to use Use default workspace if no workspaceId is specified (aggr.trade/btcusd) Allow user to set default workspace from the settings Allow user to use workspace as a base aggr.trade/a1b2/btcusd+ethusd

Tucsky avatar Oct 06 '21 12:10 Tucsky

Would love to have this, how can I help?

lmvdz avatar Jun 18 '22 22:06 lmvdz

Another option could be to provide a url parameter ?workspace=<url to .json> which will get auto loaded would allow for custom workspaces to be easily distributed. We can provide a share functionality which can store .json files on the aggr server for an hour or 1 time link request retrieval

lmvdz avatar Jun 19 '22 06:06 lmvdz

@lmvdz the feature is ready sir

right now It is using the last used filters (from the search window) for filtering what market should match when you type "btcusd" in the url (so for example if you have historical markets ticked in the settings and type etcusd in the url it won't work, as I don't have the data for that pair 🤔 )

image

Tucsky avatar Jun 22 '22 17:06 Tucsky

Hmm so how do I use it?

https//v3.aggr.trade/btcusdt ?

I am developing a game and being able to define the workspace.json as a query parameter would be amazing.

For example, I need to be able to define the workspace for the user, which will consist of a chart + trades for 3 different tickers

lmvdz avatar Jun 22 '22 19:06 lmvdz

Not sure it's working friend, my charts are undefined

lmvdz avatar Jun 22 '22 21:06 lmvdz

image

lmvdz avatar Jun 22 '22 21:06 lmvdz

image

lmvdz avatar Jun 22 '22 21:06 lmvdz

Okay it's working again, not sure what happened 👍

lmvdz avatar Jun 22 '22 21:06 lmvdz

ahh what happened there ?? was this connectivity issue on your end or... the old site remained unchanged, weird that you don't have the chart loading there

Hmm so how do I use it? https//v3.aggr.trade/btcusdt ?

Yes, https://charts.aggr.trade/btcusd, https://charts.aggr.trade/btcusd,ethusd, https://charts.aggr.trade/shibusd+dogeusd etc

For example, I need to be able to define the workspace for the user, which will consist of a chart + trades for 3 different tickers

Right now it just set on all panes on the workspace, choosing which pair goes where just from the url would be too messy, imo

Defining the workspace.json as a query parameter, assuming you were thinking of an url sounds impractical af, if you have the file, just drop it on. I like the idea of sharing a workspace tho, just like tradingview

Tucsky avatar Jun 22 '22 22:06 Tucsky

This is my case: image

When a person comes to my site I want to show them v3.aggr.trade, but as you can see I have 3 games running, so if I could append a workspace query parameter https://v3.aggr.trade?workspace=<url.json> which would load a layout like this:

image

If it's not practical that's okay, I am sure people will still be able to setup the aggr chart the way they want!

I could even have toggles on the games themselves to switch to different pairs, which could be a win-win

lmvdz avatar Jun 22 '22 22:06 lmvdz

A possible unwanted side-effect would be having the url be https://v3.aggr.trade/btcusdt and I have custom chart setup which has a bunch of different pairs like this: image It would completely ruin that workspace, because the charts each have their separate exchanges/spot/perp etc

lmvdz avatar Jun 22 '22 22:06 lmvdz

And if custom workspace.json works in the url I could even serve this layout ^ for each asset. Which would be epic

I can host the .json on my site and aggr would just pull that .json from the url ;)

lmvdz avatar Jun 22 '22 22:06 lmvdz

ahh what happened there ?? was this connectivity issue on your end or... the old site remained unchanged, weird that you don't have the chart loading there

No idea what happened there...

lmvdz avatar Jun 22 '22 22:06 lmvdz

#227 Something like this is what I was thinking of

lmvdz avatar Jun 25 '22 15:06 lmvdz

Is it also possible to set a timeframe using the url? Like "https://charts.aggr.trade/ethusdt_1s" or "https://charts.aggr.trade/ethusdt_1tick"?

@lmvdz Tagging here, maybe you know this?

StijnV007 avatar Dec 08 '22 16:12 StijnV007

Is it also possible to set a timeframe using the url? Like "https://charts.aggr.trade/ethusdt_1s" or "https://charts.aggr.trade/ethusdt_1tick"?

@lmvdz Tagging here, maybe you know this?

Not sure, don't think it's currently possible to do so in Tucsky's repo

lmvdz avatar Dec 28 '22 05:12 lmvdz