October 9, 2023 at 6:45 pm
curl -X GET "https://api.server.com/v1/markets/quotes?symbols=AAPL,VXX190517P00016000&greeks=false" \
-H 'Authorization: Bearer <TOKEN>' \
-H 'Accept: application/json'
How do i run this Rest Json API in sql server directly ?
I believe its a combination of using he below, but i could not figure out the last syntax.
sp_OACreate,
sp_OAMethod
sp_OAGetProperty
Python version is here :
# Version 3.6.1 import requests
response = requests.get('https://api.server.com/v1/markets/quotes',
params={'symbols': 'AAPL,VXX190517P00016000', 'greeks': 'false'},
headers={'Authorization': 'Bearer <TOKEN>', 'Accept': 'application/json'} )
json_response = response.json()
print(response.status_code)
print(json_response)
October 10, 2023 at 12:17 pm
This was removed by the editor as SPAM
October 10, 2023 at 7:10 pm
Thanks for posting your issue and hopefully someone will answer soon.
This is an automated bump to increase visibility of your question.
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy