ctubio / Krypto-trading-bot

Self-hosted crypto trading bot (automated high frequency market making) written in C++
https://127.0.0.1:3000
Other
3.37k stars 826 forks source link

Always Showing Missing Market Data & Missing Wallet Data with Hitbtc #755

Closed simonwongmw closed 6 years ago

simonwongmw commented 6 years ago

The terminal always display when working on Hitbtc:

- Unable to calculate TBP, missing market data and

- Unable to calculate TBP, missing wallet data

New to coding, could anyone please let me know why? Thanks in advance.

ctubio commented 6 years ago

is impossible to provide support if you dont paste the full log

did you notice it is impossible to know what currency pairs are you using by reading your report?

consider using the IRC channel if you need help to succeed with the inital configs

simonwongmw commented 6 years ago

Hi, thanks for your help.

May I know where I could access the IRV channel?

Thanks.

「Carles Tubio notifications@github.com」在 2018年7月6日 週五,下午5:08 寫道:

is impossible to provide support if you dont paste the full log

did you notice it is impossible to know what currency pairs are you using by reading your report?

consider using the IRC channel if you need help to succeed with the inital configs

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ctubio/Krypto-trading-bot/issues/755#issuecomment-402975884, or mute the thread https://github.com/notifications/unsubscribe-auth/AeRb2zHjn-lvOhGkVFbrU5e31hCg4mGUks5uDykAgaJpZM4VE50Q .

ctubio commented 6 years ago

thanks, IRC is sure faster for quick questions: https://kiwiirc.com/client/irc.freenode.net:6697/?theme=cli#tradingBot ^from https://github.com/ctubio/Krypto-trading-bot#general-discussion

ctubio commented 6 years ago

ima leave you here a copy of a working example for hitbtc, hope is easy to paste or compare with yours:

#!/usr/bin/env sh

# configurable! executable! k.sh initialization file

# Usage (replace k.sh by the current filename of THIS file):
## $ ./k.sh --help

# Feel free to copy/edit/rename THIS file.
# Is possible also to uncomment examples (but do not define multiple times the same variable).
# THIS file does, in order:
## I. Define hardcoded optional K arguments.
## II. Define initial mandatory UI arguments.
## III. Define initial mandatory API arguments.
## IV. Execute K in a loop until CTRL+C.

# I

OPTIONAL_ARGUMENTS="--colors --naked"

# II

UI_USERNAME=1234abcd
UI_PASSWORD=efgh5678
UI_OPENPORT=3000

# III

API_EXCHANGE=HITBTC
API_CURRENCY=XRP/BTC

API_KEY=WRITE_YOUR_API_KEY_HERE
API_SECRET=WRITE_YOUR_API_SECRET_HERE

API_PASSPHRASE=NULL
API_USERNAME=NULL
API_HTTP_ENDPOINT=api.hitbtc.com/api/2
API_WSS_ENDPOINT=wss//api.hitbtc.com/api/2/ws

# IV

./app/server/K                      \
    --title ${0##*/}                 \
    --port $UI_OPENPORT              \
    --user $UI_USERNAME              \
    --pass $UI_PASSWORD              \
    --exchange $API_EXCHANGE         \
    --currency $API_CURRENCY         \
    --apikey $API_KEY                \
    --secret $API_SECRET             \
    --passphrase $API_PASSPHRASE     \
    --username $API_USERNAME         \
    --http $API_HTTP_ENDPOINT        \
    --wss $API_WSS_ENDPOINT          \
    $OPTIONAL_ARGUMENTS "$@"         ;