poloniex-api | PHP wrapper for the Poloniex API | REST library
kandi X-RAY | poloniex-api Summary
kandi X-RAY | poloniex-api Summary
PHP wrapper for the Poloniex API.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Execute a request
- Get open orders
- Retrieve json from url
- Get estimated BTC rate
- Transfer Balance to another account
- Move order .
- Get trade history
- Get tick rate
- Return order book
- Retrieves a list of loan orders
poloniex-api Key Features
poloniex-api Examples and Code Snippets
Community Discussions
Trending Discussions on poloniex-api
QUESTION
I am using the following two files to get data from two APIs. Please find below my minimum viable example:
poloniex.js
...ANSWER
Answered 2017-Nov-05 at 17:43I don't know the two APIs you are accessing, so I can't really judge whether your code from poloniex.js or cctx.js is good - I assume you can tell through console.logs, etc, that you are getting the API data you require from each separately.
But I can see some logic problems in your scheduler.js file:
- In
getAllTickers
, your.forEach
loop overwritesres
every iteration, so only the last result will be visible. - Since it's an
async
function,getAllTickers
returns a promise. You'll need to use.then
or something similar on what it returns. - The console.log and return in
runScheduler
complete before the setInterval has a chance to execute, even once, so no data from there is available.
I think the following setup may be what you want:
QUESTION
This is my first question here on Stack so maybe I'll miss something since I'm not used to ask these kind of stuff.
I'm trying to implement poloniex-api-node into Node-Red. However everytime I run my code I get "TypeError: Poloniex is not a constructor".
I have added the following code to my settings.js to make this external module available:
...ANSWER
Answered 2017-Aug-11 at 10:15You have a typo in the function node, you stored the reference under poloniex
and you are trying to retrieve poloniex-api-node
.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install poloniex-api
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page