Files
ai/datafeeds/udf
Jenkins 9d8b63e068 VERSION 1.14 @ 2019-04-04 08:32:01.655131
x axis retains previous scale after restoring layout #3828
getVisiblePriceRange() not working in 1.14 (unstable) #3774
uppercase_instrument_names doesn't work for compare/overlay #3746
API method to trigger the Zoom Out #3739
Provide event that study properties was changed #3736
Fixed security issue in master #3699
widget.save have old data #3623
JS error on switching chart types #3602
Add a way to prevent scrolling beyond the beginning of bars #3597
Chart customization - overrides #3572
Theme override colors from saved_data #3557
Error while applying Pivot Points Indicator #3521
Month timeframe combining months #3510
initialSettings from settings adapter does not work #3479
Add Indexed to 100 mode for price scale #3391
RTL #3335
Add warning about incorrect usage disable_resolution_rebuild and has_empty_bars #3329
Unable to load DOME and Bottom Widget when open_account_manager disabled #3312
Randomly clickable area on chart that redirects user to tradingview.com #3299
Apply to all #3298
Save container element while charting library's life #3297
Gap appearing in chart layout #3246
User's colors not working when theme is enabled #3232
Chart is outside of visible range when in auto scale and load study template or load chart #3229
Please make getVisibleRange return the range in UTC #3173
Remove TradingView.onready from API #3162
Add API to export data from the chart #3152
Market status is not updated properly #3122
Placeholders disappear in "Compare or Add Symbol" popup when the cursor is set into the fields #2966
getVisibleRange to return 0, any way of getting the last bar in active chart ? #2757
"onListAdded" event is not fired when user click on "Save Watchlist As" #2654
Error report : Parabolic SAR #2205
TERMINAL: make a flag to disable support of stop orders #2181
Add Change % in the OHLC label Charting Library #2120
Request more bars for indicators #1362
Drawing tool does not work on Samsung Edge and  Note 5 #984
2019-04-04 11:32:07 +03:00
..

UDF Compatible Datafeed

This folder contains UDF datafeed adapter. It implements JS API and makes HTTP requests using UDF protocol.

You can use this datafeed adapter to plug your data if you implement UDF on your server. You can also scrutinize how it works before writing your own adapter.

This datafeed is implemented in TypeScript.

Folders content

  • ./src folder contains the source code in TypeScript.

  • ./lib folder contains transpiled in es5 code. So, if you do not know how to use TypeScript - you can modify these files to change the result bundle later.

  • ./dist folder contains bundled JavaScript files which can be inlined into a page and used in the Widget Constructor.

Build & bundle

Before building or bundling your code you need to run npm install to install dependencies.

package.json contains some handy scripts to build or generate the bundle:

  • npm run compile to compile TypeScript source code into JavaScript files (output will be in ./lib folder)
  • npm run bundle-js to bundle multiple JavaScript files into one bundle (it also bundle polyfills)
  • npm run build to compile and bundle (it is a combination of all above commands)

NOTE: if you want to minify the bundle code, you need to set ENV environment variable to a value different from development.

For example:

export ENV=prod
npm run bundle-js # or npm run build

or

ENV=prod npm run bundle-js

or

ENV=prod npm run build