API
Bots
name get bots method get url https api whispertrades com v1 bots description get a single bot or a list of all bots n nauth required read bots n tab examples examples languages id ywd2t0zx2jbrndx2xeu3v language curl code curl location g request get https api whispertrades com v1 bots number n header accept application json n header content type application json n header authorization bearer api token customlabel id jejzfnnnnbismjm5qmrnu language nodejs code var request require request ; nvar options n method get n url https api whispertrades com v1 bots number n headers n accept application json n content type application json n authorization bearer api token n n ; customlabel id dwegmmuohcfunn8 9zefo language javascript code var myheaders new headers ; nmyheaders append accept application json ; nmyheaders append content type application json ; nmyheaders append authorization bearer api token ; n nvar requestoptions n method get n headers myheaders n redirect follow n ; n nfetch https api whispertrades com v1 bots number requestoptions n then response response text n then result console log result n catch error console log error error ; customlabel id jcvgi2jnb8c28eetrlcdq language python code import requests nimport json n nurl https api whispertrades com v1 bots number n nquery n statuses array n include details boolean n nheaders n accept application json n content type application json n authorization bearer api token n n nresponse requests request get url headers headers params query n nprint response text n customlabel selectedlanguageid ywd2t0zx2jbrndx2xeu3v results languages id y r5wkjd9sn0uszl3eu4l language 200 customlabel code n success true n message n data n number dou1fmatvc n name 4 dte weekly pcs 350 sl n broker connection n broker tastytrade n name shared brokerage n number satfkaq8ka n account number 491857185 n net liquidation value 291851 29 n n is paper false n status enabled n can enable false n can disable true n symbol spxw n type put credit spread n notes null n last active at 2023 10 23t15 55 03 000000z n disabled at 2023 10 23t15 55 18 000000z n entry condition n frequency sequential n allocation type leverage amount n contract quantity null n percent of portfolio null n leverage amount 2 5 n long call ratio quantity null n short call ratio quantity null n long put ratio quantity null n short put ratio quantity null n entry speed normal n maximum concurrent positions null n maximum entries per day 1 n earliest time of day 9 35 am n latest time of day null n day of week null n days of week monday n minutes between positions 0 n minimum starting premium null n maximum starting premium null n minimum days to expiration 4 n target days to expiration 4 n maximum days to expiration 4 n minimum iv null n maximum iv null n minimum vix null n maximum vix null n minimum underlying percent move from close null n maximum underlying percent move from close null n minimum underlying percent move from open null n maximum underlying percent move from open null n minimum underlying percent move from today high null n maximum underlying percent move from today high null n underlying percent from today high start time null n underlying percent from today high end time null n minimum underlying percent move from today low null n maximum underlying percent move from today low null n underlying percent from today low start time null n underlying percent from today low end time null n minimum underlying percent move from prior high null n maximum underlying percent move from prior high null n underlying percent from prior high start time null n underlying percent from prior high end time null n minimum underlying percent move from prior low null n maximum underlying percent move from prior low null n underlying percent from prior low start time null n underlying percent from prior low end time null n ma crossover one null n ma crossover percent null n ma crossover type null n ma crossover two null n ma value percent null n ma value type null n ma value ma null n same day re entry null n avoid fomc null n move strike selection with conflict yes n variables n call short strike type null n call short strike minimum delta null n call short strike target delta null n call short strike maximum delta null n call short strike minimum premium null n call short strike target premium null n call short strike maximum premium null n call short strike percent otm minimum null n call short strike target percent otm null n call short strike percent otm maximum null n call long strike type null n call long strike minimum delta null n call long strike target delta null n call long strike maximum delta null n call long strike minimum premium null n call long strike target premium null n call long strike maximum premium null n call long strike percent otm minimum null n call long strike target percent otm null n call long strike percent otm maximum null n call spread minimum width points null n call spread target width points null n call spread maximum width points null n call spread minimum width percent null n call spread target width percent null n call spread maximum width percent null n call spread strike target delta null n call spread strike target premium null n restrict call spread width by null n call spread smart width false n put short strike type delta n put short strike minimum delta 15 0 n put short strike target delta 20 0 n put short strike maximum delta 22 0 n put short strike minimum premium null n put short strike target premium null n put short strike maximum premium null n put short strike percent otm minimum null n put short strike target percent otm null n put short strike percent otm maximum null n put long strike type null n put long strike minimum delta null n put long strike target delta null n put long strike maximum delta null n put long strike minimum premium null n put long strike target premium null n put long strike maximum premium null n put long strike percent otm minimum null n put long strike target percent otm null n put long strike percent otm maximum null n put spread minimum width points null n put spread target width points 75 n put spread maximum width points 90 n put spread minimum width percent null n put spread target width percent null n put spread maximum width percent null n put spread strike target delta null n put spread strike target premium null n restrict put spread width by null n put spread smart width false n n exit condition n exit speed normal n profit premium value 0 05 n profit target percent null n stop loss percent 350 n loss premium value null n itm percent stop null n otm percent stop null n delta stop null n monitored stop sensitivity normal n trail profit percent trigger null n trail profit percent amount null n trail profit premium trigger null n trail profit premium amount null n ma crossover one null n ma crossover percent null n ma crossover type null n ma crossover two null n ma value percent null n ma value type null n ma value ma null n variables n close short strike only no n sell abandoned long strike yes n n adjustments n n number jpyw9uk9al n status enabled n type enter second position n days of week all n days to expiration 1 n time of day 3 45 pm n end time of day 3 50 pm n avoid fomc null n minimum position delta null n maximum position delta null n minimum position profit percent null n maximum position profit percent null n minimum underlying percent move from close null n maximum underlying percent move from close null n ma crossover one null n ma crossover percent null n ma crossover type null n ma crossover two null n ma value percent null n ma value type null n ma value ma null n variables n n n notifications n n number 1cy3ufiajp n is enabled true n event order filled n type email sms website discord webhook pushover net n days to expiration null n percent profit null n percent loss null n percent in the money null n delta null n max per hour null n max per day null n n n variables n n number vizg80tgc9 n name weekly pcs realized profit today n value 150 56 n bot value to set bot profit realized today n free text value to set null n last updated at 2023 10 05t18 55 23 000000z n n n n selectedlanguageid y r5wkjd9sn0uszl3eu4l request pathparameters name number kind optional type string description unique identifier to retrieve a single bot if omitted all bots will be returned children queryparameters name statuses kind optional type array description filter bots to a given status or statuses valid values are enabled disabled and disable on close query string should look like this ?statuses enabled statuses disable on close children name include details kind optional type boolean description set to true to include all bot settings including entry exit adjustments notifications and variables if omitted only high level information about the bot s will be returned children headerparameters name api token kind required type string description token from your whispertrades account children bodydataparameters formdataparameters currentnewparameter label header parameter value headerparameters name enable bot method put url https api whispertrades com v1 bots number enable description enable a bot that is currently disabled or disable on close n nauth required write bots tab examples examples languages id h002bmyv03jj0 cq9mkuj language curl code curl location g request put https api whispertrades com v1 bots number enable n header accept application json n header content type application json n header authorization bearer api token customlabel id a8ouktiun13rslcykpgn language nodejs code var request require request ; nvar options n method put n url https api whispertrades com v1 bots number enable n headers n accept application json n content type application json n authorization bearer api token n n ; nrequest options function error response n if error throw new error error ; n console log response body ; n ; n customlabel id 7wnl bjis4yp93rat wpq language javascript code var myheaders new headers ; nmyheaders append accept application json ; nmyheaders append content type application json ; nmyheaders append authorization bearer api token ; n nvar requestoptions n method put n headers myheaders n redirect follow n ; n nfetch https api whispertrades com v1 bots number enable requestoptions n then response response text n then result console log result n catch error console log error error ; customlabel id to7roigpbjookbp04bwrd language python code import requests nimport json n nurl https api whispertrades com v1 bots number enable n nheaders n accept application json n content type application json n authorization bearer api token n n nresponse requests request put url headers headers n nprint response text n customlabel selectedlanguageid to7roigpbjookbp04bwrd results languages id sopz6bw4zqdmirqsndkgo language 200 customlabel code n success true n message n data n number dou1fmatvc n name 4 dte weekly pcs 350 sl n broker shared brokerage n is paper false n status enabled n can enable false n can disable true n symbol spxw n type put credit spread n notes null n last active at 2023 10 05t18 58 03 000000z n disabled at null n n selectedlanguageid sopz6bw4zqdmirqsndkgo request pathparameters name number kind required type string description bot number to enable children queryparameters headerparameters name api token kind required type string description token from your whispertrades account children bodydataparameters formdataparameters currentnewparameter label path parameter value pathparameters name disable bot method put url https api whispertrades com v1 bots number disable description disable a bot that is currently enabled if the bot has open positions the bot will move to disable on close if there are no open positions the bot will move to disabled n nauth required write bots tab examples examples languages id h002bmyv03jj0 cq9mkuj language curl code curl location g request put https api whispertrades com v1 bots number disable n header accept application json n header content type application json n header authorization bearer api token customlabel id a8ouktiun13rslcykpgn language nodejs code var request require request ; nvar options n method put n url https api whispertrades com v1 bots number disable n headers n accept application json n content type application json n authorization bearer api token n n ; nrequest options function error response n if error throw new error error ; n console log response body ; n ; n customlabel id 7wnl bjis4yp93rat wpq language javascript code var myheaders new headers ; nmyheaders append accept application json ; nmyheaders append content type application json ; nmyheaders append authorization bearer api token ; n nvar requestoptions n method put n headers myheaders n redirect follow n ; n nfetch https api whispertrades com v1 bots number disable requestoptions n then response response text n then result console log result n catch error console log error error ; customlabel id to7roigpbjookbp04bwrd language python code import requests nimport json n nurl https api whispertrades com v1 bots number disable n nheaders n accept application json n content type application json n authorization bearer api token n n nresponse requests request put url headers headers n nprint response text n customlabel selectedlanguageid to7roigpbjookbp04bwrd results languages id sopz6bw4zqdmirqsndkgo language 200 customlabel code n success true n message bot set to disable on close n data n number dou1fmatvc n name 4 dte weekly pcs 350 sl n broker shared brokerage n is paper false n status disable on close n can enable true n can disable false n symbol spxw n type put credit spread n notes null n last active at 2023 10 05t18 58 03 000000z n disabled at null n n selectedlanguageid sopz6bw4zqdmirqsndkgo request pathparameters name number kind required type string description bot number to disable children queryparameters headerparameters name api token kind required type string description token from your whispertrades account children bodydataparameters formdataparameters currentnewparameter label path parameter value pathparameters name open position method post url https api whispertrades com v1 bots number open description open a new position for the bot this is only valid during market hours while the bot is enabled and while the bot has no more than one position currently open this api request will ignore any entry filters configured for the bot and will immediately enter a new position when submitted n nauth required write positions tab examples examples languages id h002bmyv03jj0 cq9mkuj language curl code curl location g request post https api whispertrades com v1 bots number open n header accept application json n header content type application json n header authorization bearer api token customlabel id a8ouktiun13rslcykpgn language nodejs code var request require request ; nvar options n method post n url https api whispertrades com v1 bots number open n headers n accept application json n content type application json n authorization bearer api token n n ; nrequest options function error response n if error throw new error error ; n console log response body ; n ; n customlabel id 7wnl bjis4yp93rat wpq language javascript code var myheaders new headers ; nmyheaders append accept application json ; nmyheaders append content type application json ; nmyheaders append authorization bearer api token ; n nvar requestoptions n method post n headers myheaders n redirect follow n ; n nfetch https api whispertrades com v1 bots number open requestoptions n then response response text n then result console log result n catch error console log error error ; customlabel id to7roigpbjookbp04bwrd language python code import requests nimport json n nurl https api whispertrades com v1 bots number open n nheaders n accept application json n content type application json n authorization bearer api token n n nresponse requests request post url headers headers n nprint response text n customlabel selectedlanguageid to7roigpbjookbp04bwrd results languages id sopz6bw4zqdmirqsndkgo language 200 customlabel code n success true n message open position initiated n data n selectedlanguageid sopz6bw4zqdmirqsndkgo request pathparameters name number kind required type string description bot number for the new position children queryparameters headerparameters name api token kind required type string description token from your whispertrades account children bodydataparameters formdataparameters currentnewparameter label path parameter value pathparameters name close position s method put url https api whispertrades com v1 bots number close description close open position s for the bot this is only valid during market hours and while the bot is set to enabled or disable on close n nauth required write positions tab examples examples languages id h002bmyv03jj0 cq9mkuj language curl code curl location g request put https api whispertrades com v1 bots number close n header accept application json n header content type application json n header authorization bearer api token customlabel id a8ouktiun13rslcykpgn language nodejs code var request require request ; nvar options n method put n url https api whispertrades com v1 bots number close n headers n accept application json n content type application json n authorization bearer api token n n ; nrequest options function error response n if error throw new error error ; n console log response body ; n ; n customlabel id 7wnl bjis4yp93rat wpq language javascript code var myheaders new headers ; nmyheaders append accept application json ; nmyheaders append content type application json ; nmyheaders append authorization bearer api token ; n nvar requestoptions n method put n headers myheaders n redirect follow n ; n nfetch https api whispertrades com v1 bots number close requestoptions n then response response text n then result console log result n catch error console log error error ; customlabel id to7roigpbjookbp04bwrd language python code import requests nimport json n nurl https api whispertrades com v1 bots number close n nheaders n accept application json n content type application json n authorization bearer api token n n nresponse requests request put url headers headers n nprint response text n customlabel selectedlanguageid h002bmyv03jj0 cq9mkuj results languages id sopz6bw4zqdmirqsndkgo language 200 customlabel code n success true n message close bot position s initiated n data n selectedlanguageid sopz6bw4zqdmirqsndkgo request pathparameters name number kind required type string description bot number for the position s to close children queryparameters headerparameters name api token kind required type string description token from your whispertrades account children bodydataparameters formdataparameters currentnewparameter label path parameter value pathparameters