gbot-trader icon indicating copy to clipboard operation
gbot-trader copied to clipboard

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

Open Psychozz81 opened this issue 6 years ago • 3 comments

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

Psychozz81 avatar Sep 23 '17 16:09 Psychozz81

@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=

steeply avatar Sep 23 '17 16:09 steeply

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

Psychozz81 avatar Sep 23 '17 19:09 Psychozz81

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

steeply avatar Sep 24 '17 06:09 steeply