We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77e0de6 commit d01c9adCopy full SHA for d01c9ad
rest-example.py
@@ -0,0 +1,13 @@
1
+from polygon import RESTClient
2
+
3
4
+def main():
5
+ key = "your api key"
6
+ client = RESTClient(key)
7
8
+ resp = client.stocks_equities_daily_open_close("AAPL", "2018-3-2")
9
+ print(f"On: {resp.from_} Apple opened at {resp.open} and closed at {resp.close}")
10
11
12
+if __name__ == '__main__':
13
+ main()
0 commit comments