Webull API Setup & Testing
Budget: $40 – $100 USD
** You must be able to speak English. I prefer to do a screen share / audio call via Freelancer or via Zoom for a kickoff meeting before you start the project. ** Also, I will need a call with you at the end of the project to ensure the program is set up and working on my MacBook laptop.
There is already an unofficial Webull API that requires the user to be already logged in to Webull using Chrome browser, then using developer options, extract the web token, and manually insert it into the unofficial web API.
The problem is that I have trouble understanding how to set it up and make it work. I know limited programming and would like someone good with Python to make it work on my MacBook.
I also see two videos that are very close to what I need; one of them refers to the same unofficial Webull API.
What you need to do:
1. Watch the 2 video links below.
2. Review the Webull unofficial API—-- unofficial since Webull does not officially support API, hence the workaround for getting the web token.
3. Set up your own Webull account - you will test it by placing orders via this API.
4. Write a wrapper Python program which I can call with an order string as a command line argument, e.g.
python ./WebullOrder.py "SPY 8/8 526C 2.9 2000 "
See below for an explanation of what I need your wrapper program to do when I pass the following types of order string arguments:
a. SPY 8/18/2024 526C 2.9 2000 --> This is the variable string I will pass to your wapper [Webull API] program. Here, I want to buy SPY $526 calls for 8/18/2024 (August 18th, 2024) for $2.90 each limit price, and I want to spend a total of $2000 max. This means each contract is $290, so 2000/290 = 6.89 contracts -->> always round this down, so I want to buy 6 contracts. Automatically put in sell at 40% higher than the buy price. So inject this order BUY the calls at $2.9, and sell them 40% higher. In this example, $2.9 x 1.4 = 4.06, round this DOWN to two decimal places, so that the last decimal is either 0 or 5, so put in sell at $4.05. This is a conditional order, i.e. the sell will order will be conditional order based on buy order being executed. WeBull already has this feature, so watch the video, try it and execute it. I can give you a demo of this and help you get the correct token ID / strings that are needed to execute this.
b. SPY 8/22 563P 1.39 1000 --> This example shows that I want to buy $536 SPY Puts dated August 22nd, with a total amount of $1000. Each contract's limit price is $1.39, which means each contract is $139, so $1000/139 = 7.19 contracts. Round this down, so I want your script to buy 7 contracts at a limit of $1.39 each. Same thing here as above. Also put in a conditional sell order 40% higher than the buy price, so the sell price you need to put in is $1.39 x 140% = $1.946, round this down like the above example to $1.90
c. AAPL stock buy 5000. This means I want to buy TQQQ stock for up to $5000. Check the current stock price, e.g. if the current price is $65, then 5000/65 = 76.92 shares -> round this down, so buy 76 shares AT BID PRICE (not ASK). Put in conditional sell at $1 higher than the purchase price, in this example, if buy price was $65, then put in sell at $66.
Note that these are the only 3 types of orders I need your program to handle, i.e. buy calls, buy puts, and buy stock.
** Send me the Python code and detailed instructions on how to make this work. You will also likely do a Zoom call with me. I will share my screen and help you make it work on my MacBook with my Webull account.
Webull unofficial API: https://github.com/tedchou12/webull
YouTube ref1: https://www.youtube.com/watch?v=fHuVbBdpWFM
Youtube ref2: https://www.youtube.com/watch?v=T7ivbxvPKr8
There is already an unofficial Webull API that requires the user to be already logged in to Webull using Chrome browser, then using developer options, extract the web token, and manually insert it into the unofficial web API.
The problem is that I have trouble understanding how to set it up and make it work. I know limited programming and would like someone good with Python to make it work on my MacBook.
I also see two videos that are very close to what I need; one of them refers to the same unofficial Webull API.
What you need to do:
1. Watch the 2 video links below.
2. Review the Webull unofficial API—-- unofficial since Webull does not officially support API, hence the workaround for getting the web token.
3. Set up your own Webull account - you will test it by placing orders via this API.
4. Write a wrapper Python program which I can call with an order string as a command line argument, e.g.
python ./WebullOrder.py "SPY 8/8 526C 2.9 2000 "
See below for an explanation of what I need your wrapper program to do when I pass the following types of order string arguments:
a. SPY 8/18/2024 526C 2.9 2000 --> This is the variable string I will pass to your wapper [Webull API] program. Here, I want to buy SPY $526 calls for 8/18/2024 (August 18th, 2024) for $2.90 each limit price, and I want to spend a total of $2000 max. This means each contract is $290, so 2000/290 = 6.89 contracts -->> always round this down, so I want to buy 6 contracts. Automatically put in sell at 40% higher than the buy price. So inject this order BUY the calls at $2.9, and sell them 40% higher. In this example, $2.9 x 1.4 = 4.06, round this DOWN to two decimal places, so that the last decimal is either 0 or 5, so put in sell at $4.05. This is a conditional order, i.e. the sell will order will be conditional order based on buy order being executed. WeBull already has this feature, so watch the video, try it and execute it. I can give you a demo of this and help you get the correct token ID / strings that are needed to execute this.
b. SPY 8/22 563P 1.39 1000 --> This example shows that I want to buy $536 SPY Puts dated August 22nd, with a total amount of $1000. Each contract's limit price is $1.39, which means each contract is $139, so $1000/139 = 7.19 contracts. Round this down, so I want your script to buy 7 contracts at a limit of $1.39 each. Same thing here as above. Also put in a conditional sell order 40% higher than the buy price, so the sell price you need to put in is $1.39 x 140% = $1.946, round this down like the above example to $1.90
c. AAPL stock buy 5000. This means I want to buy TQQQ stock for up to $5000. Check the current stock price, e.g. if the current price is $65, then 5000/65 = 76.92 shares -> round this down, so buy 76 shares AT BID PRICE (not ASK). Put in conditional sell at $1 higher than the purchase price, in this example, if buy price was $65, then put in sell at $66.
Note that these are the only 3 types of orders I need your program to handle, i.e. buy calls, buy puts, and buy stock.
** Send me the Python code and detailed instructions on how to make this work. You will also likely do a Zoom call with me. I will share my screen and help you make it work on my MacBook with my Webull account.
Webull unofficial API: https://github.com/tedchou12/webull
YouTube ref1: https://www.youtube.com/watch?v=fHuVbBdpWFM
Youtube ref2: https://www.youtube.com/watch?v=T7ivbxvPKr8