Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Orders go off in UI - not reflected in GDAX #43

Closed
NateE-412 opened this issue Jul 6, 2017 · 11 comments
Closed

Orders go off in UI - not reflected in GDAX #43

NateE-412 opened this issue Jul 6, 2017 · 11 comments

Comments

@NateE-412
Copy link

I am running the bot on Windows via docker - I am able to connect and everything appears to working correctly. Some buys and asks cycled through and showed up in the order log. However, my gdax doesn't reflect any such order, nor does it show any open orders.

@ctubio
Copy link
Owner

ctubio commented Jul 6, 2017

you mean that the app seems correctly working but is really not sending orders?

i never saw that, maybe can you go to https://www.gdax.com/orders/ and see if there are really any others or not?

In case that really is not sending orders, can you maybe execute the app with nodejs K.js and see if the error log prints something interesting?
thanks'¡

@NateE-412
Copy link
Author

I verified that it is not sending the orders - I am going to try attaching mode-inspector to my container. Hopefully I can figure that out.

Wouldn't be a config issue would it?

General config properties. Replace with your own exchange account information:

ENV BotIdentifier autodev_bot
ENV EXCHANGE coinbase
ENV TradedPair ETH/USD
ENV WebClientUsername redacted
ENV WebClientPassword redacted
ENV WebClientListenPort 3000
ENV MatryoshkaUrl https:localhost

Set options only for your desired EXCHANGE:

Coinbase GDAX

ENV CoinbaseRestUrl https://api.gdax.com
ENV CoinbaseWebsocketUrl wss://ws-feed.gdax.com
ENV CoinbasePassphrase redacted
ENV CoinbaseApiKey redacted
ENV CoinbaseSecret redacted
ENV CoinbaseOrderDestination coinbase

I run the container using the -p 3001:3000 and -p 5001:5000 (otherwise it never connects to anything) and I can't connect to the URL

@ctubio
Copy link
Owner

ctubio commented Jul 6, 2017

err...
i hope this is not, but try changing the last line to:

ENV CoinbaseOrderDestination Coinbase

note the uppercase first C, let me know if this fixes your issue, and i will fix the app to avoid this
thanks'¡

P.D. "EXCHANGE": "coinbase", is OK in lowercase, but CoinbaseOrderDestination is not ok

@ctubio
Copy link
Owner

ctubio commented Jul 6, 2017

to check if your container can connect with gdax i think you can test a simple ping like:

ping api.gdax.com

if you see 0 packets transmitted, would mean that the containter doesnt have internetz

@NateE-412
Copy link
Author

NateE-412 commented Jul 6, 2017

Those don't need to be in quotes do they?

I changed the CoinbaseOrderDestination and rebuilt - it doesn't appear to have fixed anything. It still shows that it did something, but GDAX has no knowledge of it

Still working on getting some logs out of the container - I'm new to docker so things are moving slowly.

All I've managed to get out so far is:
PS C:> docker logs *********
warn: --minUptime not set. Defaulting to: 1000ms
warn: --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms
12:29:36.994 main Requiring authentication to web client
12:29:37.084 main Listening to admins on port 3000
12:29:37.293 broker Exchange details { exchange: 'Coinbase',
pair: 'ETH/USD',
minTick: 0.01,
minSize: 0.01,
makeFee: 0,
takeFee: 0,
hasSelfTradePrevention: true }
12:29:50.086 active Changed quoting mode to true
12:29:50.087 main Event loop delay 12300ms
12:29:50.087 stdev Unable to compute value
12:30:03.558 main Event loop delay 12500ms
12:30:03.558 stdev Unable to compute value
12:30:04.510 main Event loop delay 500ms
12:30:37.319 tbp recalculated 1.7767477961567837
12:30:37.601 tbp recalculated 3

@Camille92
Copy link
Contributor

Hi all,

I had some problems with Gdax, for me it was the ETH/BTC and LTC/BTC markets. Can you try to see if it works on other markets than ETH/USD?

Best

@NateE-412
Copy link
Author

LTC/USD doesn't seem to work either

The API should only need view and trade permissions correct?

@NateE-412
Copy link
Author

NateE-412 commented Jul 6, 2017

Now it doesn't seem to want to connect - tho the log does show something different (progress I guess)

13:25:15.088 main Event loop delay 12400ms
13:25:15.089 stdev Unable to compute value
13:25:27.115 main Event loop delay 11500ms
13:25:27.116 stdev Unable to compute value
13:25:27.589 coinbase FIX Logon Disconnected
13:25:38.720 tbp recalculated 1.7780919008318663
13:25:38.920 tbp recalculated 1.7782325046079246
13:25:39.259 tbp recalculated 1.7783362350370804
13:25:39.282 tbp recalculated 1.7782325046079246
13:25:39.440 tbp recalculated 1.7783362350370804
13:25:44.236 coinbase FIX Logon Disconnected
13:25:54.419 tbp recalculated 1.7785365931198625
13:25:56.434 tbp recalculated 1.7786406417701142
13:26:05.258 coinbase FIX Logon Disconnected
13:26:26.281 coinbase FIX Logon Disconnected

13:41:07.264 main Unhandled exception! Error: unexpected server response (520)
at ClientRequest._req.on (/K/node_modules/ws/lib/WebSocket.js:649:26)
at emitOne (events.js:96:13)
at ClientRequest.emit (events.js:191:7)
at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:522:21)
at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23)
at TLSSocket.socketOnData (_http_client.js:411:20)
at emitOne (events.js:96:13)
at TLSSocket.emit (events.js:191:7)
at readableAddChunk (_stream_readable.js:178:18)
at TLSSocket.Readable.push (_stream_readable.js:136:10)
13:41:07.265 main Attempting to cancel all open orders, please wait..
13:41:07.883 ewma Unable to compute value
13:41:07.884 tbp Unable to update ewma
13:41:07.907 stdev Unable to compute value
13:41:08.907 stdev Unable to compute value
13:41:09.266 main Exit code 0
error: Forever detected script exited with code: 0
error: Script restart attempt #1
13:41:09.774 main Requiring authentication to web client
13:41:09.790 main Listening to admins on port 3000
13:41:09.994 broker Exchange details { exchange: 'Coinbase',
pair: 'ETH/USD',
minTick: 0.01,
minSize: 0.01,
makeFee: 0,
takeFee: 0,
hasSelfTradePrevention: true }
13:41:10.021 coinbase FIX Initiator Start
13:41:10.022 coinbase FIX Logon Disconnected
13:41:24.017 main Event loop delay 13500ms
13:41:24.019 stdev Unable to compute value
13:41:35.975 main Event loop delay 11500ms
13:41:35.975 stdev Unable to compute value
13:41:37.110 tbp recalculated 1.7793945185790543
13:41:37.596 coinbase FIX Logon Disconnected
13:41:37.600 main Event loop delay 1100ms
13:41:38.533 main Event loop delay 400ms
13:41:52.033 coinbase FIX Logon Disconnected
13:42:01.739 tbp recalculated 3.5
13:42:13.055 coinbase FIX Logon Disconnected
13:42:34.078 coinbase FIX Logon Disconnected
13:42:55.100 coinbase FIX Logon Disconnected
13:43:16.122 coinbase FIX Logon Disconnected
13:43:37.145 coinbase FIX Logon Disconnected

@NateE-412
Copy link
Author

So I was poking thru the coinbase.ts file and saw on line 499 SocketConnectPort=4199

In GDAX API doc is see:
FIX API ENDPOINT URL

tcp+ssl://fix.gdax.com:4198

related?

@NateE-412
Copy link
Author

I figured it out - I needed to log into the container and run stunnel witht he K-stunnel.conf

Even if your suggestions didn't fix it... it got me looking deeper and was able to figure it out!

@ctubio
Copy link
Owner

ctubio commented Jul 6, 2017

make sure stunnel is running with ps axu | grep stunnel

if is not, you can run it with npm run test-stunnel, then see again if is running please
thanks'¡

stunnel not runnning may be one of the reasons of this log msgs

ctubio pushed a commit that referenced this issue Feb 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants