Skip to content
This repository was archived by the owner on Jan 26, 2024. It is now read-only.

Commit

Permalink
Create btifinex.js
Browse files Browse the repository at this point in the history
  • Loading branch information
22388o authored Dec 25, 2022
1 parent 44a557c commit 6aaef3a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions API/btifinex.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
"use strict"

const axios = require('axios')

const baseUrl = "https://api-pub.bitfinex.com/v2/";
const pathParams = "ticker/tBTCUSD"

axios.get(`${baseUrl}/${pathParams}`)
.then(response => {
console.log(response.data);
}, error => {
console.log(error);
})

0 comments on commit 6aaef3a

Please sign in to comment.