from flask_wtf import FlaskForm
from flask_wtf.file import FileField, FileAllowed
from wtforms import SubmitField
from wtforms.validators import DataRequired, Optional
from wtforms.fields.html5 import DateField


class LoadMarketDataForm(FlaskForm):
    inputfile = FileField('Stock Symbol File (.csv)', validators=[
        DataRequired(), FileAllowed(['csv'])])
    start = DateField('Start Date', format='%Y-%m-%d')
    end = DateField('End Date', format='%Y-%m-%d', validators=[Optional()])
    submit = SubmitField('Download & Save')


class SpliteStocksForm(FlaskForm):
    inputfile = FileField('Stocks File (.csv)', validators=[DataRequired(),
        FileAllowed(['csv'])])
    submit = SubmitField('Splite...')


class ImportStocksForm(FlaskForm):
    inputfile = FileField('Stocks File (.csv)', validators=[DataRequired(),
        FileAllowed(['csv'])])
    submit = SubmitField('Import...')

6e0e289e5097b8d9a02c0c59a6fd857e888239aa
<mask token>


class SpliteStocksForm(FlaskForm):
    <mask token>
    <mask token>


class ImportStocksForm(FlaskForm):
    inputfile = FileField('Stocks File (.csv)', validators=[DataRequired(),
        FileAllowed(['csv'])])
    submit = SubmitField('Import...')

<mask token>


class LoadMarketDataForm(FlaskForm):
    <mask token>
    <mask token>
    <mask token>
    <mask token>


class SpliteStocksForm(FlaskForm):
    inputfile = FileField('Stocks File (.csv)', validators=[DataRequired(),
        FileAllowed(['csv'])])
    submit = SubmitField('Splite...')


class ImportStocksForm(FlaskForm):
    inputfile = FileField('Stocks File (.csv)', validators=[DataRequired(),
        FileAllowed(['csv'])])
    submit = SubmitField('Import...')

<mask token>


class LoadMarketDataForm(FlaskForm):
    inputfile = FileField('Stock Symbol File (.csv)', validators=[
        DataRequired(), FileAllowed(['csv'])])
    start = DateField('Start Date', format='%Y-%m-%d')
    end = DateField('End Date', format='%Y-%m-%d', validators=[Optional()])
    submit = SubmitField('Download & Save')


class SpliteStocksForm(FlaskForm):
    inputfile = FileField('Stocks File (.csv)', validators=[DataRequired(),
        FileAllowed(['csv'])])
    submit = SubmitField('Splite...')


class ImportStocksForm(FlaskForm):
    inputfile = FileField('Stocks File (.csv)', validators=[DataRequired(),
        FileAllowed(['csv'])])
    submit = SubmitField('Import...')

from flask_wtf import FlaskForm
from flask_wtf.file import FileField, FileAllowed
from wtforms import SubmitField
from wtforms.validators import DataRequired, Optional
from wtforms.fields.html5 import DateField


class LoadMarketDataForm(FlaskForm):
    inputfile = FileField('Stock Symbol File (.csv)', validators=[
        DataRequired(), FileAllowed(['csv'])])
    start = DateField('Start Date', format='%Y-%m-%d')
    end = DateField('End Date', format='%Y-%m-%d', validators=[Optional()])
    submit = SubmitField('Download & Save')


class SpliteStocksForm(FlaskForm):
    inputfile = FileField('Stocks File (.csv)', validators=[DataRequired(),
        FileAllowed(['csv'])])
    submit = SubmitField('Splite...')


class ImportStocksForm(FlaskForm):
    inputfile = FileField('Stocks File (.csv)', validators=[DataRequired(),
        FileAllowed(['csv'])])
    submit = SubmitField('Import...')
