Skip to content

Commit 2bc9001

Browse files
authored
Add files via upload
1 parent 7739241 commit 2bc9001

File tree

3 files changed

+120
-0
lines changed

3 files changed

+120
-0
lines changed

README.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
investing.js
2+
---
3+
**En**
4+
You can get information about the crypto you want and see how much it price on the date you set.
5+
**Tr**
6+
İstediğiniz kripto hakkında bilgi alabilir ve belirlediğiniz tarihte fiyatı ne kadar olduğuna bakabilirsiniz.
7+
8+
[Site](https://codare.fun) - [Guide](https://codare.gitbook.io/guide/api/api)
9+
---
10+
```shell
11+
npm install investing.js
12+
```
13+
```javascript
14+
const modül = require('investing.js')
15+
16+
async function getHistory() {
17+
let kripto = await modül.getHistory('btc', 'try', '2018-05-22')
18+
console.log(kripto)
19+
}
20+
getHistory() //{ fiyat: 37964.43 }
21+
22+
async function get() {
23+
let kripto = await modül.get('btc', 'try')
24+
console.log(kripto)
25+
}
26+
get()
27+
/*/
28+
{
29+
fiyat: 431967.46,
30+
medyan: 431205,
31+
sonhacim: 0.01155322,
32+
son24saathacmi: 1406.1784100999998,
33+
'günaçılışı': 403196.9,
34+
'günyüksek': 443394.99,
35+
'gündüşük': 401186.6,
36+
'açılış24saate': 390345.02,
37+
'yüksek24saate': 443728.76,
38+
'düşük24saate': 389469.67,
39+
market: 'CCCAGG',
40+
sonmarket: 'BTCTurk',
41+
saatlikhacim: 7.0543062200000035,
42+
'saataçılış': 435572.83,
43+
'saatyüksek': 435614.35,
44+
'saatdüşük': 431745.47,
45+
'üstkatmanhacmi24saate': 1406.1784100999998,
46+
'değişiklik24saate': 41622.44,
47+
'değişiklikgünde': 28770.559999999998,
48+
'değişikliksaate': -3605.3699999999953,
49+
'çevrilen': 'yok',
50+
arz: 18692043,
51+
'piyasadeğeri': 8074354336920.78,
52+
'piyasadeğericezası': 0,
53+
toplamhacim24saate: 322552.3802063719,
54+
'toplamüstkatmanhacmi24saate': 322041.8538589735,
55+
resim: 'https://www.cryptocompare.com//media/37746251/btc.png'
56+
}
57+
/*/
58+
```

function.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
const fetch = require('node-fetch')
2+
3+
module.exports = {
4+
get: async function(val,val2) {
5+
const api = await fetch(`https://api.codare.fun/kripto/${val}/${val2}`)
6+
.then(response => response.json());
7+
if(api.error) throw 'Apide has been problem'
8+
return api
9+
}, getHistory: async function(val,val2, history) {
10+
const api = await fetch(`https://api.codare.fun/kripto/tarih/${val}/${val2}?tarih=${history}`)
11+
.then(response => response.json());
12+
if(api.error) throw 'Apide has been problem'
13+
return api
14+
},
15+
};

package.json

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"name": "investing.js",
3+
"version": "1.0.0",
4+
"description": "You can get information about the crypto you want and see how much it price on the date you set.",
5+
"main": "function.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"repository": {
10+
"type": "git",
11+
"url": "git+https://github.com/Furtsy/investing.js.git"
12+
},
13+
"keywords": [
14+
"crypto",
15+
"crypto-api",
16+
"crypto.js",
17+
"crypto-api.js",
18+
"crypto-cash",
19+
"bitcoin",
20+
"cryptocurrency",
21+
"blockchain",
22+
"bitcoinjs",
23+
"investing",
24+
"investing.js",
25+
"investing-api",
26+
"investing-api.js",
27+
"kripto",
28+
"kripto para",
29+
"kripto-para",
30+
"kripto-api",
31+
"borsa",
32+
"borsa-api",
33+
"borsa.js",
34+
"cryptocurrency",
35+
"ethereum",
36+
"price"
37+
],
38+
"author": "Furtsy",
39+
"license": "MIT",
40+
"bugs": {
41+
"url": "https://github.com/Furtsy/investing.js/issues"
42+
},
43+
"homepage": "https://github.com/Furtsy/investing.js#readme",
44+
"dependencies": {
45+
"node-fetch": "^2.6.1"
46+
}
47+
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy