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 8d2d09f + 633ad6b commit db8d569Copy full SHA for db8d569
src/miscRequests.js
@@ -133,9 +133,10 @@ module.exports = {
133
* | 'futures' | 'forex' | 'cfd'
134
* | 'crypto' | 'index' | 'economic'
135
* } [filter] Caterogy filter
136
+ * @param {number} offset Pagination offset
137
* @returns {Promise<SearchMarketResult[]>} Search results
138
*/
- async searchMarketV3(search, filter = '') {
139
+ async searchMarketV3(search, filter = '', offset = 0) {
140
const splittedSearch = search.toUpperCase().replace(/ /g, '+').split(':');
141
142
const request = await axios.get(
@@ -148,6 +149,7 @@ module.exports = {
148
149
),
150
text: splittedSearch.pop(),
151
search_type: filter,
152
+ start: offset,
153
},
154
headers: {
155
origin: 'https://www.tradingview.com',
0 commit comments