ccxt-with-rest-api-type
Advanced tools
Comparing version
{ | ||
"name": "ccxt-with-rest-api-type", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -1,2 +0,2 @@ | ||
### Ccxt With Rest Api Type | ||
### Ccxt With Rest Api Type for NODEJS | ||
````shell | ||
@@ -6,3 +6,3 @@ npm install --save-dev ccxt-with-rest-api-type | ||
```` | ||
Typescript | ||
```typescript | ||
@@ -18,2 +18,18 @@ import {binanceRestApiType} from 'ccxt-with-rest-api-type'; | ||
})() | ||
``` | ||
``` | ||
Javascript | ||
```javascript | ||
import ccxt from "ccxt"; | ||
/** | ||
* @type {import('ccxt-with-rest-api-type').wooRestApiType} | ||
*/ | ||
const woo = new ccxt.woo(); | ||
(async () => { | ||
const ExchangeInfo = await woo.v1PublicGetFuturesSymbol({ | ||
symbol: 'PERP_BTC_USDT' | ||
}); | ||
console.log(ExchangeInfo) | ||
})() | ||
``` |
@@ -8,2 +8,3 @@ import ccxt from "ccxt"; | ||
fs.mkdirSync(path.join(__dirname, "./types")); | ||
(async () => { | ||
@@ -10,0 +11,0 @@ const writeIndexStream = fs.createWriteStream(path.resolve(__dirname, `../src/index.ts`)); |
736674
0.04%34
100%