This repository has been archived by the owner on Oct 30, 2023. It is now read-only.
forked from carlosmiei/node-binance-api
-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
69 additions
and
3,790 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,2 @@ | ||
**Title** | ||
- bug: XYZ broken | ||
- feature: please add | ||
- enhancement: add this to existing features | ||
|
||
**Short Description:** | ||
- Unable to get a result from blah | ||
|
||
**Platform:** | ||
- windows | ||
- linux | ||
- macos | ||
|
||
**node version:** | ||
- 9.11 | ||
|
||
**Long descrption** | ||
- Doing xyz results in ypr and failing when fph | ||
|
||
**code** | ||
``` | ||
const util = require('util'); | ||
const binance = require('node-binance-api'); | ||
binance.options({ | ||
APIKEY: '<key>', | ||
APISECRET: '<secret>', | ||
useServerTime: true, // If you get timestamp errors, synchronize to server time at startup | ||
test: true // If you want to use sandbox mode where orders are simulated | ||
}); | ||
util.inspect( binance ); | ||
``` | ||
|
||
**result** | ||
``` | ||
{ | ||
"result":"result" | ||
} | ||
``` | ||
|
||
thank you | ||
SUPPORT IS NO LONGER OFFERED BY BINANCE | ||
Please do not post an issue unless it is a feature request |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Standalone async functions not requiring the library | ||
const axios = require( 'axios' ); | ||
async function bookTicker( symbol = false ) { | ||
return new Promise( ( resolve, reject ) => { | ||
params = symbol ? `?symbol=${symbol}` : ''; | ||
axios.get( 'https://api.binance.com/api/v3/ticker/bookTicker' + params ) | ||
.then( function ( response ) { | ||
resolve( response.data ); | ||
} ) | ||
.catch( function ( error ) { | ||
throw error; | ||
} ); | ||
} ); | ||
} | ||
//console.log(await bookTicker()); | ||
//console.log(await bookTicker("BTCUSDT")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.