poloniex

how to handle bash with multiple arguments for multiple options

淺唱寂寞╮ 提交于 2020-03-19 03:52:40
问题 I need to download chart data from poloniex rest client with multiple options using bash only. I tried getopts but couldn't really find a way to use mutliple options with multiple parameters. here is what I want to achieve ./getdata.sh -c currency1 currency2 ... -p period1 period2 ... having the arguments I need to call wget for c x p times for currency in c for period in p wget https://poloniex.com/public?command=returnChartData&currencyPair=BTC_{$currency}&start=1405699200&end=9999999999

how to handle bash with multiple arguments for multiple options

ぃ、小莉子 提交于 2020-03-19 03:52:32
问题 I need to download chart data from poloniex rest client with multiple options using bash only. I tried getopts but couldn't really find a way to use mutliple options with multiple parameters. here is what I want to achieve ./getdata.sh -c currency1 currency2 ... -p period1 period2 ... having the arguments I need to call wget for c x p times for currency in c for period in p wget https://poloniex.com/public?command=returnChartData&currencyPair=BTC_{$currency}&start=1405699200&end=9999999999

Can't connect to Poloniex

≯℡__Kan透↙ 提交于 2020-01-04 14:16:23
问题 I'm trying to connect to Poloniex. To connect, I'm using WynthShop and this code: public class Program { public static void Main(string[] args) { var channelFactory = new DefaultWampChannelFactory(); var channel = channelFactory.CreateJsonChannel("wss://api.poloniex.com", "realm1"); channel.Open().GetAwaiter().GetResult(); var tickerSubject = channel.RealmProxy.Services.GetSubject("ticker"); var cancellationTokenSource = new CancellationTokenSource(); using (var subscr = tickerSubject

Reading Messages on Poloniex Trollbox with Python autbahn or other socket module?

限于喜欢 提交于 2019-12-20 02:49:09
问题 Poloniex doesn't return every message to my socket. I read the messages with the following code and sometimes I get continuous message numbers, but sometimes there are like 10 messages missing: from autobahn.asyncio.wamp import ApplicationSession from autobahn.asyncio.wamp import ApplicationRunner from asyncio import coroutine class PoloniexComponent(ApplicationSession): def onConnect(self): self.join(self.config.realm) @coroutine def onJoin(self, details): def onTrollbox(*args): print("type:

Poloniex C# Trading API webRequest comes back (403) Forbidden

荒凉一梦 提交于 2019-12-11 12:03:52
问题 I have my code down to the essentials for testing access, but am receiving the good old error(403) from the server, I have verified for double-sure I am using the correct API Key/Secret pair. My Code (C# via Unity 3D) is as follows: using System.Collections; using System.Collections.Generic; using UnityEngine; using System; using System.Security.Cryptography; using System.IO; using System.Text; using System.Net; public class PolonScript : MonoBehaviour { public TextMesh OutputText; const

How to up to date poloniex orderbook via push api (WAMP protocol)

空扰寡人 提交于 2019-12-08 11:14:47
问题 I making software for scalping on poloniex.com To do this, I need to have fresh information about order book. API DOCUMENTATION said about push api. As i understand right it work like that: Use returnOrderBook (public method API) for getting snapshot Take sequence number (seq key) from responce Subscribe to push api with sequence number from snapshot Recive fresh data and make correction on snapshot data. <?php namespace Crypto\Scalper\Cli; use AppConfig; use Monolog\Logger; use Monolog

Why is Poloniex API blocked by CAPTCHA? Expected JSON, but response is HTML

萝らか妹 提交于 2019-12-06 10:31:30
问题 I am using the following code to look up json from the poloniex API. It is returning HTML instead of JSON. What am I doing wrong? I would like JSON. import requests res = requests.get("https://poloniex.com/public?command=returnTradeHistory&currencyPair=BTC_NXT&start=1410158341&end=1410499372") print(res.text) 回答1: To summarize the comment chain, you are almost certainly doing something that the server doesn't like which causes it to ask you for a CAPTCHA. One of the commenters pointed out the

Poloniex Push WAMP API through Autobahn dropping connection to peer tcp

强颜欢笑 提交于 2019-12-06 02:19:33
问题 I tried to connect to the Push API in poloniex using python and followed the instructions on the answer here: How to connect to poloniex.com websocket api using a python library However I keep getting this error: 2017-06-25T04:07:04 dropping connection to peer tcp:104.20.13.48:443 with abort=True: WebSocket opening handshake timeout (peer did not finish the opening handshake in time) Anyone know what's going on here? I can't figure it out from online documentation. Thanks! 回答1: As per

Why is Poloniex API blocked by CAPTCHA? Expected JSON, but response is HTML

若如初见. 提交于 2019-12-04 16:25:29
I am using the following code to look up json from the poloniex API. It is returning HTML instead of JSON. What am I doing wrong? I would like JSON. import requests res = requests.get("https://poloniex.com/public?command=returnTradeHistory&currencyPair=BTC_NXT&start=1410158341&end=1410499372") print(res.text) msw To summarize the comment chain, you are almost certainly doing something that the server doesn't like which causes it to ask you for a CAPTCHA. One of the commenters pointed out the documented limit of "6 calls per second to the public API, or repeatedly and needlessly fetching

Reading Messages on Poloniex Trollbox with Python autbahn or other socket module?

我是研究僧i 提交于 2019-12-01 21:27:52
Poloniex doesn't return every message to my socket. I read the messages with the following code and sometimes I get continuous message numbers, but sometimes there are like 10 messages missing: from autobahn.asyncio.wamp import ApplicationSession from autobahn.asyncio.wamp import ApplicationRunner from asyncio import coroutine class PoloniexComponent(ApplicationSession): def onConnect(self): self.join(self.config.realm) @coroutine def onJoin(self, details): def onTrollbox(*args): print("type: ", args[0]) print("message_number: ", args[1]) print("user_name: ", args[2]) print("message: ", args[3