We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6cc1a40 + 4b7f288 commit f096176Copy full SHA for f096176
1 file changed
src/client.js
@@ -217,6 +217,7 @@ module.exports = class Client {
217
* @prop {string} [signature] User auth token signature (in 'sessionid_sign' cookie)
218
* @prop {boolean} [DEBUG] Enable debug mode
219
* @prop {'data' | 'prodata' | 'widgetdata'} [server] Server type
220
+ * @prop {string} [location] Auth page location (For france: https://fr.tradingview.com/)
221
*/
222
223
/** Client object
@@ -234,6 +235,7 @@ module.exports = class Client {
234
235
misc.getUser(
236
clientOptions.token,
237
clientOptions.signature ? clientOptions.signature : '',
238
+ clientOptions.location ? clientOptions.location : "https://tradingview.com",
239
).then((user) => {
240
this.#sendQueue.unshift(protocol.formatWSPacket({
241
m: 'set_auth_token',
0 commit comments