Comments (11)
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!
from krypto-trading-bot.
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'¡
from krypto-trading-bot.
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
from krypto-trading-bot.
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
from krypto-trading-bot.
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
from krypto-trading-bot.
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
from krypto-trading-bot.
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
from krypto-trading-bot.
LTC/USD doesn't seem to work either
The API should only need view and trade permissions correct?
from krypto-trading-bot.
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
from krypto-trading-bot.
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?
from krypto-trading-bot.
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
from krypto-trading-bot.
Related Issues (20)
- ;6037998155543910=04051012636000000000? HOT 2
- binance orders can't be canceled HOT 6
- Unlock issue HOT 1
- Limits on Binance
- Feature request HOT 2
- Coinbase API Change
- Failed to execute the command ‘make lib‘
- Bot doesnt work
- CURL/SSH error HOT 2
- "Invalid Arguments" when using Kraken BTC/USD pair HOT 1
- GUI is not working HOT 5
- Update API HOT 1
- How to quote both sides each X seconds
- Binance Cross Margin connection support
- Binance ERROR
- I like to be a tester
- unable to open database file. HOT 1
- Collaboration
- Bot
- Binance NOTIONAL error.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from krypto-trading-bot.