Adding missing default timeout on all axios requests.

fixes #314
This commit is contained in:
softsimon
2021-01-30 16:25:22 +07:00
parent c9f2a871fc
commit ec9fdbe3d6
5 changed files with 21 additions and 14 deletions

View File

@@ -138,7 +138,7 @@ class Bisq {
}
private updatePrice() {
axios.get<BisqTrade[]>('https://bisq.markets/api/trades/?market=bsq_btc')
axios.get<BisqTrade[]>('https://bisq.markets/api/trades/?market=bsq_btc', { timeout: 10000 })
.then((response) => {
const prices: number[] = [];
response.data.forEach((trade) => {