Python strftime ('% Y-%m-%d') is not recognized

it"s OK for me to call df = ts.get_tick_data ("601688 dating records 2015-08-25"), but I can"t call it up when I replace it with the function
begin = datetime.date (2015
df = ts.get_tick_data ("% Y-%m-%d")). I think it"s because the begin.strftime ("% Y-%m-%d") server recognizes it incorrectly. Is there any way to output begin.strftime ("% Y-%m-%d") locally as a number and then quote it as a number? Or how should I change the function so that it can be recognized?
there is no problem with the current operation, but the data called out shows that there is no data on the same day. The date identified by the server may not be the same as what I want to enter. I tried a lot of dates with data like this
ask for your help! Thank you!

Mar.23,2021

remove the quotation marks from date


the foundation of python needs to be strengthened

-sharpdf = ts.get_tick_data('601688',date='begin.strftime("%Y-%m-%d")') 
df = ts.get_tick_data('601688',date=begin.strftime("%Y-%m-%d")) 
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e5f786-4cf39.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e5f786-4cf39.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?