forked from christhai/3commas-telegram-bot-trader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathforms.py
executable file
·12 lines (11 loc) · 909 Bytes
/
forms.py
1
2
3
4
5
6
7
8
9
10
11
12
from flask_wtf import Form
from wtforms import StringField, PasswordField, SubmitField
from wtforms.validators import DataRequired, Email, Length
class SignupForm(Form):
tele_id = StringField('Telegram ID', validators=[DataRequired("Please enter your telegram ID.")])
tele_hash = StringField('Telegram Hash', validators=[DataRequired("Please enter your telegram Hash")])
tele_channel = StringField('Telegram channel name', validators=[DataRequired("Please enter your telegram channel name")])
accountid = StringField('3commas Account ID', validators=[DataRequired("Please enter your 3commas account id")])
accountkey = StringField('3commas Account API KEY', validators=[DataRequired("Please enter your 3commas account API KEY")])
accountsecret = StringField('3commas Account API Secret', validators=[DataRequired("Please enter your 3commas account API Secret")])
submit = SubmitField('Trade')