fixes tp/sl
This commit is contained in:
parent
9f72619f51
commit
5326e3f5bc
@ -34,6 +34,14 @@ function order {
|
|||||||
|
|
||||||
### validity checks ###
|
### validity checks ###
|
||||||
|
|
||||||
|
if [ -z "$f_symbol" ] || [ -z "$f_amount" ] || [ -z "$f_side" ] || [ -z "$f_price" ]
|
||||||
|
then
|
||||||
|
g_echo_error "Missing values!
|
||||||
|
Usage: order symbol amount side price [stoploss] [takeprofit]
|
||||||
|
Given: ${FUNCNAME} $@"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
# check symbol XXX/$CURRENCY[:$CURRENCY]
|
# check symbol XXX/$CURRENCY[:$CURRENCY]
|
||||||
[[ $f_symbol =~ /$CURRENCY ]] || return 1
|
[[ $f_symbol =~ /$CURRENCY ]] || return 1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user