I want to concat the tow api call. How i can use ConcatMap on this code ?
getHIndices(code) {
this.api.getInstrumentHistoryIndices(code, '3M')
.subscribe((response: {}) => {
this.prepareDataForHistory(response);
});
setTimeout(() => {
this.api.getInstrumentHistoryIndices(code, '5Y')
.subscribe((response: {}) => {
this.prepareDataForHistory2(response);
});
}, 300);
}