poloniex | Sample poloniex client in go | REST library
kandi X-RAY | poloniex Summary
kandi X-RAY | poloniex Summary
Sample poloniex client in go
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of poloniex
poloniex Key Features
poloniex Examples and Code Snippets
Community Discussions
Trending Discussions on poloniex
QUESTION
I have a memory stream of data I have received from Poloniex's API. https://docs.poloniex.com/#ticker-data
The data in the API looks in the format below:
...ANSWER
Answered 2021-Jun-02 at 23:58This JSON is basically an Array of objects.
QUESTION
Here is my function that uses the Poloniex Exchange API. It gets a dict
of asks (tuples of price and amount) and then calculates the total amount of BTC that would be obtained using a given spend.
But running the function several times returns different amounts despite the dict of asks and spend remaining the same. This problem should be replicable by printing "asks" (defined below) and the function result several times.
...ANSWER
Answered 2021-Mar-09 at 23:43The problem is in your "we don't have enough money" path. In that case, the amount you can buy does not depend on the amount that was offered.
QUESTION
I'm working with Poloniex API. While using returnTicker function, the data comes like this.
curl "https://poloniex.com/public?command=returnTicker"
...ANSWER
Answered 2020-Dec-22 at 15:55I think this does what you want.
QUESTION
I want to add a second child to my supervisor but i get the following error.
** (Mix) Could not start application cloner_worker: exited in: ClonerWorker.Application.start(:normal, []) ** (EXIT) an exception was raised: ** (ArgumentError) The module ClonerWorker.Worker was given as a child to a supervisor but it does not exist. (elixir 1.11.2) lib/supervisor.ex:631: Supervisor.init_child/1 (elixir 1.11.2) lib/enum.ex:1399: Enum."-map/2-lists^map/1-0-"/2 (elixir 1.11.2) lib/supervisor.ex:617: Supervisor.init/2 (elixir 1.11.2) lib/supervisor.ex:556: Supervisor.start_link/2 (kernel 7.1) application_master.erl:277: :application_master.start_it_old/4
application.ex
...ANSWER
Answered 2020-Dec-04 at 17:41The problem was that i called my file worker.exs instead of worker.ex sorry for the misunderstanding in the question where i did put worker.ex
QUESTION
I get this error:
...ANSWER
Answered 2020-Oct-28 at 21:58For this situation two options come to mind:
You can try setting up client certificates from here https://code.kx.com/q/kb/ssl/#tls-client-mode
You can try setting the variable SSL_VERIFY_SERVER to NO before launching your q session by doing
export SSL_VERIFY_SERVER=NO
. To view your current TLS settings which contains this, use-26!()
in your q process to display the settings.
It's probably better to do 1) and set up the certificates if possible. This just means that you check the SSL certificate for HTTPS connections and ensures you are sending the request to your intended location.
The above link goes into more detail about SSL/TSL knowledge which might prove useful for you.
QUESTION
I'm trying to use Python to access the trading API at poloniex.com, a cryptocurrency exchange. To do this I must follow this prescription:
All calls to the trading API are sent via HTTP POST to https://poloniex.com/tradingApi and must contain the following headers:
Key - Your API key.
Sign - The query's POST data signed by your key's "secret" according to the HMAC-SHA512 method.Additionally, all queries must include a "nonce" POST parameter. The nonce parameter is an integer which must always be greater than the previous nonce used.
Here is what I have so far. My current issue is that I do not know how to compile the POST url so that it can be signed without sending the incomplete request first. This obviously doesn't work.
...ANSWER
Answered 2020-Mar-04 at 21:34Create a prepared request; you can add headers to that after the body has been created:
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
I need help with function attribute in Python.
I have the data which look like this: exch1 = data['Info']['Exchange1']
and this equals for example poloniex
.
I need to get exch1_object
which must look like this ccxt.poloniex()
, But when I try to do it I get the error:
ANSWER
Answered 2019-Jan-23 at 13:42You could try to use getattr()
:
QUESTION
Using Eloquent, trying to find a way to get the latest rows of every row grouped by: exchange, base, quote
Data
...ANSWER
Answered 2019-Dec-17 at 13:00You can fetch the latest rows first then group the collection later.
QUESTION
I'm trying to use socket.io to connect to this websocket api:
https://www.cryptocompare.com/api/#-api-web-socket-
(wss://streamer.cryptocompare.com)
I guess im not really understanding socket.io very much.
I created a blank html document:
...ANSWER
Answered 2019-Dec-15 at 10:12You don't need the Express code because in this case the server you want to talk to is on the cryptocompare server -- not a local server. This is captured in your code when you initialize the io
object in the HTML file.
Of course, you could still use Node to talk to the cryptocompare websockets API if you're more comfortable with Node. But then you wouldn't need the in-browser JavaScript. Either way, what you need is to create some kind of client in any runtime that speaks websockets and can talk to the cryptocompare websockets API.
With regard to the code being skipped over -- you're right! It is. socket.io is an event driven WebSockets framework. This means that clients register their interest in certain kinds of events/messages, and when those are triggered special functions known as callbacks are called.
If it helps, you can think of those events like channels in a chat room -- if you're not in the right room, you won't see the messages for that room. So you'll need to know what messages you should be listening for, register your interest in those, and register callback functions for each one.
Thankfully cryptocompare has provided client code examples that should help you get an idea for the kinds of messages you should be listening for. See here
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install poloniex
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