webull-openapi-python-sdk 2.0.11__py3-none-any.whl → 2.0.13__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. samples/__init__.py +1 -1
  2. samples/data/data_client.py +120 -0
  3. samples/trade/activities_client.py +59 -0
  4. webull/__init__.py +1 -1
  5. webull/core/__init__.py +1 -1
  6. webull/data/__init__.py +1 -1
  7. webull/data/data_client.py +2 -0
  8. webull/data/quotes/fundamentals.py +335 -0
  9. webull/data/quotes/screener.py +88 -0
  10. webull/data/request/get_capital_flow_request.py +35 -0
  11. webull/data/request/get_dividend_calendar_request.py +31 -0
  12. webull/data/request/get_earnings_calendar_request.py +31 -0
  13. webull/data/request/get_financials_alert_request.py +31 -0
  14. webull/data/request/get_financials_balance_sheet_request.py +39 -0
  15. webull/data/request/get_financials_cashflow_request.py +39 -0
  16. webull/data/request/get_financials_income_request.py +39 -0
  17. webull/data/request/get_financials_indicators_request.py +39 -0
  18. webull/data/request/get_forecast_eps_request.py +31 -0
  19. webull/data/request/get_fund_allocation_request.py +31 -0
  20. webull/data/request/get_fund_brief_request.py +31 -0
  21. webull/data/request/get_fund_dividends_request.py +39 -0
  22. webull/data/request/get_fund_files_request.py +31 -0
  23. webull/data/request/get_fund_holdings_request.py +31 -0
  24. webull/data/request/get_fund_net_value_request.py +39 -0
  25. webull/data/request/get_fund_performance_request.py +31 -0
  26. webull/data/request/get_fund_rating_request.py +31 -0
  27. webull/data/request/get_fund_splits_request.py +31 -0
  28. webull/data/request/get_industry_comparison_request.py +35 -0
  29. webull/data/request/get_sec_filings_request.py +31 -0
  30. webull/data/request/screener/get_52whl_request.py +47 -0
  31. webull/data/request/screener/get_high_dividend_request.py +43 -0
  32. webull/data/request/screener/get_market_sectors_detail_request.py +51 -0
  33. webull/data/request/screener/get_market_sectors_request.py +47 -0
  34. webull/trade/__init__.py +1 -1
  35. webull/trade/request/get_activities_request.py +39 -0
  36. webull/trade/trade/activity.py +49 -0
  37. webull/trade/trade_client.py +2 -0
  38. {webull_openapi_python_sdk-2.0.11.dist-info → webull_openapi_python_sdk-2.0.13.dist-info}/METADATA +1 -1
  39. {webull_openapi_python_sdk-2.0.11.dist-info → webull_openapi_python_sdk-2.0.13.dist-info}/RECORD +43 -15
  40. {webull_openapi_python_sdk-2.0.11.dist-info → webull_openapi_python_sdk-2.0.13.dist-info}/WHEEL +1 -1
  41. {webull_openapi_python_sdk-2.0.11.dist-info → webull_openapi_python_sdk-2.0.13.dist-info}/licenses/LICENSE +0 -0
  42. {webull_openapi_python_sdk-2.0.11.dist-info → webull_openapi_python_sdk-2.0.13.dist-info}/licenses/NOTICE +0 -0
  43. {webull_openapi_python_sdk-2.0.11.dist-info → webull_openapi_python_sdk-2.0.13.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,35 @@
1
+ # Copyright 2022 Webull
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ # coding=utf-8
16
+
17
+ from webull.core.request import ApiRequest
18
+
19
+
20
+ class GetCapitalFlowRequest(ApiRequest):
21
+ def __init__(self):
22
+ ApiRequest.__init__(self, "/openapi/fundamentals/stock/capital-flow", version='v2', method="GET",
23
+ query_params={})
24
+
25
+ def set_symbol(self, symbol):
26
+ if symbol:
27
+ self.add_query_param("symbol", symbol)
28
+
29
+ def set_category(self, category):
30
+ if category:
31
+ self.add_query_param("category", category)
32
+
33
+ def set_count(self, count):
34
+ if count:
35
+ self.add_query_param("count", count)
@@ -0,0 +1,31 @@
1
+ # Copyright 2022 Webull
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ # coding=utf-8
16
+
17
+ from webull.core.request import ApiRequest
18
+
19
+
20
+ class GetDividendCalendarRequest(ApiRequest):
21
+ def __init__(self):
22
+ ApiRequest.__init__(self, "/openapi/fundamentals/stock/dividend-calendar", version='v2', method="GET",
23
+ query_params={})
24
+
25
+ def set_symbol(self, symbol):
26
+ if symbol:
27
+ self.add_query_param("symbol", symbol)
28
+
29
+ def set_category(self, category):
30
+ if category:
31
+ self.add_query_param("category", category)
@@ -0,0 +1,31 @@
1
+ # Copyright 2022 Webull
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ # coding=utf-8
16
+
17
+ from webull.core.request import ApiRequest
18
+
19
+
20
+ class GetEarningsCalendarRequest(ApiRequest):
21
+ def __init__(self):
22
+ ApiRequest.__init__(self, "/openapi/fundamentals/stock/earnings-calendar", version='v2', method="GET",
23
+ query_params={})
24
+
25
+ def set_symbol(self, symbol):
26
+ if symbol:
27
+ self.add_query_param("symbol", symbol)
28
+
29
+ def set_category(self, category):
30
+ if category:
31
+ self.add_query_param("category", category)
@@ -0,0 +1,31 @@
1
+ # Copyright 2022 Webull
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ # coding=utf-8
16
+
17
+ from webull.core.request import ApiRequest
18
+
19
+
20
+ class GetFinancialsAlertRequest(ApiRequest):
21
+ def __init__(self):
22
+ ApiRequest.__init__(self, "/openapi/fundamentals/financial/alert", version='v2', method="GET",
23
+ query_params={})
24
+
25
+ def set_symbol(self, symbol):
26
+ if symbol:
27
+ self.add_query_param("symbol", symbol)
28
+
29
+ def set_category(self, category):
30
+ if category:
31
+ self.add_query_param("category", category)
@@ -0,0 +1,39 @@
1
+ # Copyright 2022 Webull
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ # coding=utf-8
16
+
17
+ from webull.core.request import ApiRequest
18
+
19
+
20
+ class GetFinancialsBalanceSheetRequest(ApiRequest):
21
+ def __init__(self):
22
+ ApiRequest.__init__(self, "/openapi/fundamentals/financial/balance-sheet", version='v2', method="GET",
23
+ query_params={})
24
+
25
+ def set_symbol(self, symbol):
26
+ if symbol:
27
+ self.add_query_param("symbol", symbol)
28
+
29
+ def set_category(self, category):
30
+ if category:
31
+ self.add_query_param("category", category)
32
+
33
+ def set_type(self, type):
34
+ if type:
35
+ self.add_query_param("type", type)
36
+
37
+ def set_count(self, count):
38
+ if count:
39
+ self.add_query_param("count", count)
@@ -0,0 +1,39 @@
1
+ # Copyright 2022 Webull
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ # coding=utf-8
16
+
17
+ from webull.core.request import ApiRequest
18
+
19
+
20
+ class GetFinancialsCashflowRequest(ApiRequest):
21
+ def __init__(self):
22
+ ApiRequest.__init__(self, "/openapi/fundamentals/financial/cash-flow", version='v2', method="GET",
23
+ query_params={})
24
+
25
+ def set_symbol(self, symbol):
26
+ if symbol:
27
+ self.add_query_param("symbol", symbol)
28
+
29
+ def set_category(self, category):
30
+ if category:
31
+ self.add_query_param("category", category)
32
+
33
+ def set_type(self, type):
34
+ if type:
35
+ self.add_query_param("type", type)
36
+
37
+ def set_count(self, count):
38
+ if count:
39
+ self.add_query_param("count", count)
@@ -0,0 +1,39 @@
1
+ # Copyright 2022 Webull
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ # coding=utf-8
16
+
17
+ from webull.core.request import ApiRequest
18
+
19
+
20
+ class GetFinancialsIncomeRequest(ApiRequest):
21
+ def __init__(self):
22
+ ApiRequest.__init__(self, "/openapi/fundamentals/financial/income", version='v2', method="GET",
23
+ query_params={})
24
+
25
+ def set_symbol(self, symbol):
26
+ if symbol:
27
+ self.add_query_param("symbol", symbol)
28
+
29
+ def set_category(self, category):
30
+ if category:
31
+ self.add_query_param("category", category)
32
+
33
+ def set_type(self, type):
34
+ if type:
35
+ self.add_query_param("type", type)
36
+
37
+ def set_count(self, count):
38
+ if count:
39
+ self.add_query_param("count", count)
@@ -0,0 +1,39 @@
1
+ # Copyright 2022 Webull
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ # coding=utf-8
16
+
17
+ from webull.core.request import ApiRequest
18
+
19
+
20
+ class GetFinancialsIndicatorsRequest(ApiRequest):
21
+ def __init__(self):
22
+ ApiRequest.__init__(self, "/openapi/fundamentals/financial/indicators", version='v2', method="GET",
23
+ query_params={})
24
+
25
+ def set_symbol(self, symbol):
26
+ if symbol:
27
+ self.add_query_param("symbol", symbol)
28
+
29
+ def set_category(self, category):
30
+ if category:
31
+ self.add_query_param("category", category)
32
+
33
+ def set_type(self, type):
34
+ if type:
35
+ self.add_query_param("type", type)
36
+
37
+ def set_count(self, count):
38
+ if count:
39
+ self.add_query_param("count", count)
@@ -0,0 +1,31 @@
1
+ # Copyright 2022 Webull
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ # coding=utf-8
16
+
17
+ from webull.core.request import ApiRequest
18
+
19
+
20
+ class GetForecastEpsRequest(ApiRequest):
21
+ def __init__(self):
22
+ ApiRequest.__init__(self, "/openapi/fundamentals/stock/forecast-eps", version='v2', method="GET",
23
+ query_params={})
24
+
25
+ def set_symbol(self, symbol):
26
+ if symbol:
27
+ self.add_query_param("symbol", symbol)
28
+
29
+ def set_category(self, category):
30
+ if category:
31
+ self.add_query_param("category", category)
@@ -0,0 +1,31 @@
1
+ # Copyright 2022 Webull
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ # coding=utf-8
16
+
17
+ from webull.core.request import ApiRequest
18
+
19
+
20
+ class GetFundAllocationRequest(ApiRequest):
21
+ def __init__(self):
22
+ ApiRequest.__init__(self, "/openapi/fundamentals/fund/allocation", version='v2', method="GET",
23
+ query_params={})
24
+
25
+ def set_symbol(self, symbol):
26
+ if symbol:
27
+ self.add_query_param("symbol", symbol)
28
+
29
+ def set_category(self, category):
30
+ if category:
31
+ self.add_query_param("category", category)
@@ -0,0 +1,31 @@
1
+ # Copyright 2022 Webull
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ # coding=utf-8
16
+
17
+ from webull.core.request import ApiRequest
18
+
19
+
20
+ class GetFundBriefRequest(ApiRequest):
21
+ def __init__(self):
22
+ ApiRequest.__init__(self, "/openapi/fundamentals/fund/brief", version='v2', method="GET",
23
+ query_params={})
24
+
25
+ def set_symbol(self, symbol):
26
+ if symbol:
27
+ self.add_query_param("symbol", symbol)
28
+
29
+ def set_category(self, category):
30
+ if category:
31
+ self.add_query_param("category", category)
@@ -0,0 +1,39 @@
1
+ # Copyright 2022 Webull
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ # coding=utf-8
16
+
17
+ from webull.core.request import ApiRequest
18
+
19
+
20
+ class GetFundDividendsRequest(ApiRequest):
21
+ def __init__(self):
22
+ ApiRequest.__init__(self, "/openapi/fundamentals/fund/dividends", version='v2', method="GET",
23
+ query_params={})
24
+
25
+ def set_symbol(self, symbol):
26
+ if symbol:
27
+ self.add_query_param("symbol", symbol)
28
+
29
+ def set_category(self, category):
30
+ if category:
31
+ self.add_query_param("category", category)
32
+
33
+ def set_page_index(self, page_index):
34
+ if page_index:
35
+ self.add_query_param("page_index", page_index)
36
+
37
+ def set_page_size(self, page_size):
38
+ if page_size:
39
+ self.add_query_param("page_size", page_size)
@@ -0,0 +1,31 @@
1
+ # Copyright 2022 Webull
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ # coding=utf-8
16
+
17
+ from webull.core.request import ApiRequest
18
+
19
+
20
+ class GetFundFilesRequest(ApiRequest):
21
+ def __init__(self):
22
+ ApiRequest.__init__(self, "/openapi/fundamentals/fund/files", version='v2', method="GET",
23
+ query_params={})
24
+
25
+ def set_symbol(self, symbol):
26
+ if symbol:
27
+ self.add_query_param("symbol", symbol)
28
+
29
+ def set_category(self, category):
30
+ if category:
31
+ self.add_query_param("category", category)
@@ -0,0 +1,31 @@
1
+ # Copyright 2022 Webull
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ # coding=utf-8
16
+
17
+ from webull.core.request import ApiRequest
18
+
19
+
20
+ class GetFundHoldingsRequest(ApiRequest):
21
+ def __init__(self):
22
+ ApiRequest.__init__(self, "/openapi/fundamentals/fund/holdings", version='v2', method="GET",
23
+ query_params={})
24
+
25
+ def set_symbol(self, symbol):
26
+ if symbol:
27
+ self.add_query_param("symbol", symbol)
28
+
29
+ def set_category(self, category):
30
+ if category:
31
+ self.add_query_param("category", category)
@@ -0,0 +1,39 @@
1
+ # Copyright 2022 Webull
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ # coding=utf-8
16
+
17
+ from webull.core.request import ApiRequest
18
+
19
+
20
+ class GetFundNetValueRequest(ApiRequest):
21
+ def __init__(self):
22
+ ApiRequest.__init__(self, "/openapi/fundamentals/fund/net-value", version='v2', method="GET",
23
+ query_params={})
24
+
25
+ def set_symbol(self, symbol):
26
+ if symbol:
27
+ self.add_query_param("symbol", symbol)
28
+
29
+ def set_category(self, category):
30
+ if category:
31
+ self.add_query_param("category", category)
32
+
33
+ def set_last_date(self, last_date):
34
+ if last_date:
35
+ self.add_query_param("last_date", last_date)
36
+
37
+ def set_count(self, count):
38
+ if count:
39
+ self.add_query_param("count", count)
@@ -0,0 +1,31 @@
1
+ # Copyright 2022 Webull
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ # coding=utf-8
16
+
17
+ from webull.core.request import ApiRequest
18
+
19
+
20
+ class GetFundPerformanceRequest(ApiRequest):
21
+ def __init__(self):
22
+ ApiRequest.__init__(self, "/openapi/fundamentals/fund/performance", version='v2', method="GET",
23
+ query_params={})
24
+
25
+ def set_symbol(self, symbol):
26
+ if symbol:
27
+ self.add_query_param("symbol", symbol)
28
+
29
+ def set_category(self, category):
30
+ if category:
31
+ self.add_query_param("category", category)
@@ -0,0 +1,31 @@
1
+ # Copyright 2022 Webull
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ # coding=utf-8
16
+
17
+ from webull.core.request import ApiRequest
18
+
19
+
20
+ class GetFundRatingRequest(ApiRequest):
21
+ def __init__(self):
22
+ ApiRequest.__init__(self, "/openapi/fundamentals/fund/rating", version='v2', method="GET",
23
+ query_params={})
24
+
25
+ def set_symbol(self, symbol):
26
+ if symbol:
27
+ self.add_query_param("symbol", symbol)
28
+
29
+ def set_category(self, category):
30
+ if category:
31
+ self.add_query_param("category", category)
@@ -0,0 +1,31 @@
1
+ # Copyright 2022 Webull
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ # coding=utf-8
16
+
17
+ from webull.core.request import ApiRequest
18
+
19
+
20
+ class GetFundSplitsRequest(ApiRequest):
21
+ def __init__(self):
22
+ ApiRequest.__init__(self, "/openapi/fundamentals/fund/splits", version='v2', method="GET",
23
+ query_params={})
24
+
25
+ def set_symbol(self, symbol):
26
+ if symbol:
27
+ self.add_query_param("symbol", symbol)
28
+
29
+ def set_category(self, category):
30
+ if category:
31
+ self.add_query_param("category", category)
@@ -0,0 +1,35 @@
1
+ # Copyright 2022 Webull
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ # coding=utf-8
16
+
17
+ from webull.core.request import ApiRequest
18
+
19
+
20
+ class GetIndustryComparisonRequest(ApiRequest):
21
+ def __init__(self):
22
+ ApiRequest.__init__(self, "/openapi/fundamentals/stock/industry-comparison", version='v2', method="GET",
23
+ query_params={})
24
+
25
+ def set_symbol(self, symbol):
26
+ if symbol:
27
+ self.add_query_param("symbol", symbol)
28
+
29
+ def set_category(self, category):
30
+ if category:
31
+ self.add_query_param("category", category)
32
+
33
+ def set_sort_by(self, sort_by):
34
+ if sort_by:
35
+ self.add_query_param("sort_by", sort_by)