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

Where do i can insert api key, secret and token ? #7

Open
Psychozz81 opened this issue Sep 23, 2017 · 3 comments
Open

Where do i can insert api key, secret and token ? #7

Psychozz81 opened this issue Sep 23, 2017 · 3 comments

Comments

@Psychozz81
Copy link

I have Linux OS , i can undertsnad how i can perform forst step:
Set the parameters API Exchange: KEY, SECRET and TELEGRAM_TOKEN . Which file or how to define these parameters?

Thanks in advance

@steeply
Copy link
Owner

steeply commented Sep 23, 2017

@Psychozz81
Parameters must be specified via an environment variable.
This can be done by entering the command in the console:

export PARAM=VALUE

or use makefile

gbot-start:
@echo "GBot"
@KEY=KEY SECRET=SECRET NAME_COIN="btc" NAME_COIN_TWO="usd" (... all necessary parameters) node ./build/server

.PHONY: gbot-start

run by command make gbot-start

or use shell commands.

Here is an example configuration:
file config.sh

#!/bin/sh
echo "GBot 1"
export LOG=1
export LOG_DEBUG=1
export LOG_TRANSPORTS=2
# ==================================================
export EXCHANGE=bitfinex
export NAME_COIN=LTC
export NAME_COIN_TWO=BTC
export ONE_ORDERS_SELL=true
export ONE_ORDERS_PROFIT_PERCENT=1
export ONE_ORDERS_OFFSET=0.2
export FIRST_LOADING_HISTORY=0
export CONTINUE_MARTINGALE_GRID=0
export OFFSET_ORDERS_EXPONENTIAL=0.2
export OFFSET_FIRST_ORDERS_PERCENT=0.0000001
export MARTINGALE_TYPE=1
export SIZE_ORDERS_MARTINGALE=30
export COUNT_ORDERS=20
export QUANTITY_ORDERS_IN_BLOCKS=3
export SIZE_FIRST_ORDER=0.1
#  ==================================================
export TYPE_DATA_USED=history
export DELAY_REQUEST_API=2000
export CYCLES_AUTO_EXIT=5
export NODE_ENV=production 
export DELAY_BETWEEN_MODULES=2
export TIME_ZONE=Europe/Moscow
. ./keys/gbot-1.key
node ./build/server --no-color

#npm start

file gbot-1.key

export KEY=
export SECRET=
export TELEGRAM_TOKEN=
export TELEGRAM_ID=
export WALLET=
export LICENSE_KEY=

@Psychozz81
Copy link
Author

I exported Api key, secret word, and Token Telegram. Application is started, but telegram does not work, nothing happened there, so i cant get id.
Also i would like to understand is it possible to manage exchange by all pairs, make an order, cancel and etc? Or just one pair?

Also how much is it?

npm restart

[email protected] start /gbot-trader
node ./build/server

00:11:55 - warn: -----------------------------------
00:11:55 - warn: Триал версия с ограничениями!
00:11:55 - warn: Только торговые пары с BTC!
00:11:55 - warn: Ограничение депозита 0.05 BTC!
00:11:55 - warn: -----------------------------------
00:11:55 - warn: Your trading pair: LTC/USD

@steeply
Copy link
Owner

steeply commented Sep 24, 2017

If you do not get the instructions in the readme to get the Telegram id, you can get it using this bot @userinfobot

English in the interface can be turned on by setting the parameter LANGUAGE=en

In the trial version, the restriction on trading with pairs only of the BTC and the restriction of the deposit is no more than 0.05 btc

Full version https://gbot-trader.herokuapp.com/pricing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants