Username: Password:

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - kevinlekiller

Pages: [1]
1
Technical Support & Development / Re: Linux proxy for 422 errors.
« on: June 27, 2017, 09:20:01 PM »
Nice. I'm testing it now.

Seems to work. Great work. Not seeing any 422 errors.

It does use lot's of CPU, that would be nice to get down little bit.

Cpu usage should be better now.

2
Technical Support & Development / Re: Linux proxy for 422 errors.
« on: June 27, 2017, 07:37:48 PM »
thanks! facing a problem when using it with mac.
terminal always stay at "Updating polo ip".
seems missing some configs in my mac. can write a guide for mac-user?

Hi, unfortunately I don't have access to a Mac.

The "Updating polo ip." tries to get the poloniex IP using dig then pipes it through head to get just the IP address,

If you run the command in a terminal do you get the IP ? dig @8.8.8.8 +short poloniex.com | head -1

oh... it return 104.20.13.48.
should it return 127.0.0.1?  seems that my dnsmasq is not working

It should return 104.20.13.48. Basically, we are telling dig to ask 8.8.8.8 (google) what the poloniex IP is.
You can use dig +short poloniex.com to check if dnsmasq is working.

If you want to see what DNS server was used :
dig poloniex.com | grep -i server

3
Technical Support & Development / Re: Linux proxy for 422 errors.
« on: June 27, 2017, 07:24:05 PM »
thanks! facing a problem when using it with mac.
terminal always stay at "Updating polo ip".
seems missing some configs in my mac. can write a guide for mac-user?

Hi, unfortunately I don't have access to a Mac.

The "Updating polo ip." tries to get the poloniex IP using dig then pipes it through head to get just the IP address,

If you run the command in a terminal do you get the IP ? dig @8.8.8.8 +short poloniex.com | head -1

4
Technical Support & Development / Re: Linux proxy for 422 errors.
« on: June 27, 2017, 07:15:33 PM »
Encouter this error:
Code: [Select]
Traceback (most recent call last):
  File "polproxy.py", line 5, in <module>
    from urllib.parse import urlencode
ImportError: No module named parse

Ok, I made:
Code: [Select]
sudo python3 polproxy.pythat solve this error.

But now GB fired me:
Code: [Select]
Creating market client for BTC_BCN pair
Activating hot reconfig...
###[ --2017/06/27 18:34:28--poloniex--BTC_BCN  --  Gunbot v3.3 cycle #1 --------------- ]
::::: collecting market data...
Server running at http://127.0.0.1:39873
(node:5606) DeprecationWarning: Calling an asynchronous function without callback is deprecated.
/snapshot/Users/Enrico/Desktop/xBot_v2.9.3/node_modules/request/request.js:188
      self._callback.apply(self, arguments)
                     ^

TypeError: Cannot read property 'statusCode' of undefined
    at Request._callback (evalmachine.<anonymous>:0:0)
    at self.callback (/snapshot/Users/Enrico/Desktop/xBot_v2.9.3/node_modules/request/request.js:188:22)
    at emitOne (events.js:96:13)
    at Request.emit (events.js:189:7)
    at Request.onRequestError (/snapshot/Users/Enrico/Desktop/xBot_v2.9.3/node_modules/request/request.js:884:8)
    at emitOne (events.js:96:13)
    at ClientRequest.emit (events.js:189:7)
    at TLSSocket.socketErrorListener (_http_client.js:358:9)
    at emitOne (events.js:96:13)
    at TLSSocket.emit (events.js:189:7)
    at connectErrorNT (net.js:1025:8)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)

$

Ok, I'm back, do you see anything in the polproxy.py window ? Any errors there?

5
Technical Support & Development / Re: Linux proxy for 422 errors.
« on: June 27, 2017, 05:46:30 PM »
Encouter this error:
Code: [Select]
Traceback (most recent call last):
  File "polproxy.py", line 5, in <module>
    from urllib.parse import urlencode
ImportError: No module named parse

Ok, I made:
Code: [Select]
sudo python3 polproxy.pythat solve this error.

But now GB fired me:
Code: [Select]
Creating market client for BTC_BCN pair
Activating hot reconfig...
###[ --2017/06/27 18:34:28--poloniex--BTC_BCN  --  Gunbot v3.3 cycle #1 --------------- ]
::::: collecting market data...
Server running at http://127.0.0.1:39873
(node:5606) DeprecationWarning: Calling an asynchronous function without callback is deprecated.
/snapshot/Users/Enrico/Desktop/xBot_v2.9.3/node_modules/request/request.js:188
      self._callback.apply(self, arguments)
                     ^

TypeError: Cannot read property 'statusCode' of undefined
    at Request._callback (evalmachine.<anonymous>:0:0)
    at self.callback (/snapshot/Users/Enrico/Desktop/xBot_v2.9.3/node_modules/request/request.js:188:22)
    at emitOne (events.js:96:13)
    at Request.emit (events.js:189:7)
    at Request.onRequestError (/snapshot/Users/Enrico/Desktop/xBot_v2.9.3/node_modules/request/request.js:884:8)
    at emitOne (events.js:96:13)
    at ClientRequest.emit (events.js:189:7)
    at TLSSocket.socketErrorListener (_http_client.js:358:9)
    at emitOne (events.js:96:13)
    at TLSSocket.emit (events.js:189:7)
    at connectErrorNT (net.js:1025:8)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)

$

I'm not sure, not encountered that issue, have to head out, but can help you out later this evening.

6
Technical Support & Development / Re: Linux proxy for 422 errors.
« on: June 27, 2017, 05:45:24 PM »
Wow, great job Kevin  :)
I will test it as soon as possible.

Just a question, in the README you say:
Quote
Create a new poloniex api key: https://poloniex.com/apiKeys

Why? Can't use an existing API Key? I'm not sure.

When you make a new key, the nonce starts at 0, but it will still work with an existing key.

7
Technical Support & Development / Re: Linux proxy for 422 errors.
« on: June 27, 2017, 05:44:55 PM »
Nice. I'm testing it now.

Seems to work. Great work. Not seeing any 422 errors.

It does use lot's of CPU, that would be nice to get down little bit.

Yeah, it needs some optimization, I have some ideas in mind, will test over the next few days.

8
Technical Support & Development / Linux proxy for 422 errors.
« on: June 27, 2017, 02:32:32 PM »
Hi, I've written a free and open source proxy for linux to solve the 422 errors. Hope it helps you.

https://github.com/kevinlekiller/polproxy

Pages: [1]