Skip to content

Commit 91dcf33

Browse files
Adjust docstrings and documentation (#172)
1 parent e198bbf commit 91dcf33

21 files changed

Lines changed: 496 additions & 396 deletions

docs/src/base_api/base_api.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
.. Copyright (C) 2023 Benjamin Thomas Schwertfeger
33
.. GitHub: https://github.com/btschwertfeger
44
5-
The Base Clients and Internals
6-
==============================
5+
Base Clients and Internals
6+
==========================
77

88
The following classes and data structures are listed for completeness. Please
99
avoid using them since these are internals and may change without any warning.

docs/src/examples/rest_ws_samples/futures_rest_examples.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
.. Copyright (C) 2023 Benjamin Thomas Schwertfeger
44
.. GitHub: https://github.com/btschwertfeger
55
6-
Futures Rest
6+
Futures REST
77
------------
88

99
The examples presented below serve to demonstrate the usage of the Futures
@@ -19,4 +19,4 @@ individual functions.
1919
.. literalinclude:: ../../../../examples/futures_examples.py
2020
:language: python
2121
:linenos:
22-
:caption: Example usages of the REST clients
22+
:caption: Example usage of Futures REST clients

docs/src/examples/rest_ws_samples/spot_rest_examples.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
.. Copyright (C) 2023 Benjamin Thomas Schwertfeger
33
.. GitHub: https://github.com/btschwertfeger
44
5-
Spot Rest
5+
Spot REST
66
---------
77

88
The examples presented below serve to demonstrate the usage of the Spot
@@ -18,4 +18,4 @@ individual functions.
1818
.. literalinclude:: ../../../../examples/spot_examples.py
1919
:language: python
2020
:linenos:
21-
:caption: Example usages of the REST clients
21+
:caption: Example usage of Spot REST clients

docs/src/examples/trading_bot_templates/spot_bot_templates.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
.. The spot trading bot templates
66
77
Spot Trading Bot Templates
8-
-------------------------
8+
--------------------------
99

1010
The templates presented below serve as starting points for the development of
1111
a trading algorithms for Spot trading on the cryptocurrency exchange `Kraken`_

kraken/futures/funding.py

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,11 @@ class Funding(KrakenFuturesBaseAPI):
2525
:type key: str, optional
2626
:param secret: Futures API secret key (default: ``""``)
2727
:type secret: str, optional
28-
:param url: Alternative URL to access the Futures Kraken API (default: https://futures.kraken.com)
28+
:param url: Alternative URL to access the Futures Kraken API (default:
29+
https://futures.kraken.com)
2930
:type url: str, optional
30-
:param sandbox: If set to ``True`` the URL will be https://demo-futures.kraken.com (default: ``False``)
31+
:param sandbox: If set to ``True`` the URL will be
32+
https://demo-futures.kraken.com (default: ``False``)
3133
:type sandbox: bool, optional
3234
3335
.. code-block:: python
@@ -68,7 +70,8 @@ def get_historical_funding_rates(
6870
extra_params: Optional[dict] = None,
6971
) -> dict:
7072
"""
71-
Retrieve information about the historical funding rates of a specific ``symbol``
73+
Retrieve information about the historical funding rates of a specific
74+
``symbol``
7275
7376
- https://docs.futures.kraken.com/#http-api-trading-v3-api-historical-funding-rates-historicalfundingrates
7477
@@ -115,10 +118,11 @@ def initiate_wallet_transfer(
115118
extra_params: Optional[dict] = None,
116119
) -> dict:
117120
"""
118-
Submit a wallet transfer request to transfer funds between margin accounts.
121+
Submit a wallet transfer request to transfer funds between margin
122+
accounts.
119123
120-
Requires the ``General API - Full Access`` and ``Withdrawal API - Full access``
121-
permissions in the API key settings.
124+
Requires the ``General API - Full Access`` and ``Withdrawal API - Full
125+
access`` permissions in the API key settings.
122126
123127
- https://docs.futures.kraken.com/#http-api-trading-v3-api-transfers-initiate-wallet-transfer
124128
@@ -175,8 +179,8 @@ def initiate_subaccount_transfer(
175179
"""
176180
Submit a request to transfer funds between the regular and subaccount.
177181
178-
Requires the ``General API - Full Access`` and ``Withdrawal API - Full access``
179-
permissions in the API key settings.
182+
Requires the ``General API - Full Access`` and ``Withdrawal API - Full
183+
access`` permissions in the API key settings.
180184
181185
- https://docs.futures.kraken.com/#http-api-trading-v3-api-transfers-initiate-sub-account-transfer
182186
@@ -232,8 +236,8 @@ def initiate_withdrawal_to_spot_wallet(
232236
"""
233237
Enables the transfer of funds between the futures and spot wallet.
234238
235-
Requires the ``General API - Full Access`` and ``Withdrawal API - Full access``
236-
permissions in the API key settings.
239+
Requires the ``General API - Full Access`` and ``Withdrawal API - Full
240+
access`` permissions in the API key settings.
237241
238242
- https://docs.futures.kraken.com/#http-api-trading-v3-api-transfers-initiate-withdrawal-to-spot-wallet
239243
@@ -243,7 +247,8 @@ def initiate_withdrawal_to_spot_wallet(
243247
:type currency: str
244248
:param sourceWallet: The wallet to withdraw from (default: ``cash``)
245249
:type sourceWallet: str, optional
246-
:raises ValueError: If this function is called within the sandbox/demo environment
250+
:raises ValueError: If this function is called within the sandbox/demo
251+
environment
247252
248253
.. code-block:: python
249254
:linenos:

0 commit comments

Comments
 (0)