import axios from 'axios';
const options = {
method: 'GET',
url: 'https://crypto-arbitrage.p.rapidapi.com/crypto-arb',
params: {
pair: 'BTC/USD',
consider_fees: 'False',
selected_exchanges: 'exmo cex bitstamp hitbtc'
},
headers: {
'X-RapidAPI-Key': 'SIGN-UP-FOR-KEY',
'X-RapidAPI-Host': 'crypto-arbitrage.p.rapidapi.com'
}
};
try {
const response = await axios.request(options);
console.log(response.data);
} catch (error) {
console.error(error);
}
No comments:
Post a Comment