BITPANDA(-PRO) now ONETRADING
This commit is contained in:
parent
8a075d7954
commit
2236ac65f7
@ -107,10 +107,10 @@ do
|
|||||||
TOKEN_INFO_CMD="binance_get_token_info"
|
TOKEN_INFO_CMD="binance_get_token_info"
|
||||||
# command for buying/selling a token
|
# command for buying/selling a token
|
||||||
TRADE_CMD='binance-api-call POST /api/v3/order "&symbol=TOKEN"eOrderQty=QUANTITY&side=ACTION&type=MARKET"'
|
TRADE_CMD='binance-api-call POST /api/v3/order "&symbol=TOKEN"eOrderQty=QUANTITY&side=ACTION&type=MARKET"'
|
||||||
elif [ "${STOCK_EXCHANGE}" = "BITPANDA" ]
|
elif [ "${STOCK_EXCHANGE}" = "ONETRADING" ]
|
||||||
then
|
then
|
||||||
TOKEN_INFO_CMD="bitpanda_get_token_info"
|
TOKEN_INFO_CMD="onetrading_get_token_info"
|
||||||
TRADE_CMD='bitpanda-api-call POST public/v1/account/orders "--header \"Content-Type: application/json\" --data \"{\\\"instrument_code\\\":\\\"TOKEN\\\",\\\"side\\\":\\\"ACTION\\\",\\\"type\\\":\\\"MARKET\\\",\\\"amount\\\":\\\"QUANTITY\\\"}\""'
|
TRADE_CMD='onetrading-api-call POST public/v1/account/orders "--header \"Content-Type: application/json\" --data \"{\\\"instrument_code\\\":\\\"TOKEN\\\",\\\"side\\\":\\\"ACTION\\\",\\\"type\\\":\\\"MARKET\\\",\\\"amount\\\":\\\"QUANTITY\\\"}\""'
|
||||||
elif [ "${STOCK_EXCHANGE}" = "NONE" ]
|
elif [ "${STOCK_EXCHANGE}" = "NONE" ]
|
||||||
then
|
then
|
||||||
## stop here if STOCK_EXCHANGE not present
|
## stop here if STOCK_EXCHANGE not present
|
||||||
|
Loading…
Reference in New Issue
Block a user