Skip to content

Commit

Permalink
2.6.1 RC1
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-zehentleitner committed May 17, 2024
1 parent 75a520b commit 3f3ae59
Show file tree
Hide file tree
Showing 23 changed files with 504 additions and 447 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![Get a UNICORN Binance Suite License](https://raw.githubusercontent.com/LUCIT-Systems-and-Development/unicorn-binance-suite/master/images/logo/LUCIT-UBS-License-Offer.png)](https://shop.lucit.services)

![Anaconda Release](https://img.shields.io/conda/v/lucit/unicorn-binance-rest-api?color=blue)
[![Anaconda Release](https://img.shields.io/conda/v/lucit/unicorn-binance-rest-api?color=blue)](https://anaconda.org/lucit/unicorn-binance-rest-api)
[![GitHub Release](https://img.shields.io/github/release/LUCIT-Systems-and-Development/unicorn-binance-rest-api.svg?label=github)](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-rest-api/releases)
[![PyPi Release](https://img.shields.io/pypi/v/unicorn-binance-rest-api?color=blue)](https://pypi.org/project/unicorn-binance-rest-api/)
[![Supported Python Version](https://img.shields.io/pypi/pyversions/unicorn_binance_rest_api.svg)](https://www.python.org/downloads/)
Expand Down
2 changes: 1 addition & 1 deletion dev/sphinx/source/readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![Get a UNICORN Binance Suite License](https://raw.githubusercontent.com/LUCIT-Systems-and-Development/unicorn-binance-suite/master/images/logo/LUCIT-UBS-License-Offer.png)](https://shop.lucit.services)

![Anaconda Release](https://img.shields.io/conda/v/lucit/unicorn-binance-rest-api?color=blue)
[![Anaconda Release](https://img.shields.io/conda/v/lucit/unicorn-binance-rest-api?color=blue)](https://anaconda.org/lucit/unicorn-binance-rest-api)
[![GitHub Release](https://img.shields.io/github/release/LUCIT-Systems-and-Development/unicorn-binance-rest-api.svg?label=github)](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-rest-api/releases)
[![PyPi Release](https://img.shields.io/pypi/v/unicorn-binance-rest-api?color=blue)](https://pypi.org/project/unicorn-binance-rest-api/)
[![Supported Python Version](https://img.shields.io/pypi/pyversions/unicorn_binance_rest_api.svg)](https://www.python.org/downloads/)
Expand Down
2 changes: 1 addition & 1 deletion docs/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 7fdb1092cf9601b3e24285f81db30c9d
config: 1510a60dd90a4247012f46cd6aba688c
tags: 645f666f9bcd5a90fca523b33c5a78b7
4 changes: 2 additions & 2 deletions docs/_modules/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Overview: module code &#8212; unicorn-binance-rest-api 2.6.0 documentation</title><meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Overview: module code &#8212; unicorn-binance-rest-api 2.6.1 documentation</title><meta name="viewport" content="width=device-width, initial-scale=1.0">

<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=92fd9be5" />
<link rel="stylesheet" type="text/css" href="../_static/pydoctheme.css?v=fdf8e9ae" />
Expand Down Expand Up @@ -250,7 +250,7 @@ <h3>Navigation</h3>
<a href="https://docs.lucit.tech">Index of all LUCIT Software Documentation</a><br />
&copy; <a href="/license.html">Copyright</a> 2023-2023, LUCIT Systems and Development. All Rights Reserved..
See <a href="/license.html">License</a> for more information.<br />
Last updated on May 16 2024 at 23:01 (CET).
Last updated on May 17 2024 at 09:12 (CET).
<a href="https://github.com/LUCIT-Systems-and-Development/unicorn-binance-rest-api/issues/new/choose">Found a bug</a>?
<br />
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.2.6.
Expand Down
8 changes: 6 additions & 2 deletions docs/_modules/unicorn_binance_rest_api/exceptions.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>unicorn_binance_rest_api.exceptions &#8212; unicorn-binance-rest-api 2.1.0 documentation</title><meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>unicorn_binance_rest_api.exceptions &#8212; unicorn-binance-rest-api 2.6.1 documentation</title><meta name="viewport" content="width=device-width, initial-scale=1.0">

<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=92fd9be5" />
<link rel="stylesheet" type="text/css" href="../../_static/pydoctheme.css?v=fdf8e9ae" />
Expand Down Expand Up @@ -112,6 +112,7 @@ <h3>Navigation</h3>

<li><img src="../../_static/lucit.png" alt="LUCIT Logo"
style="vertical-align: middle; margin-top: -1px"/></li>
<li><a href="https://docs.lucit.tech">Docs Index</a> | </li>
<li><a href="https://www.lucit.tech/unicorn-binance-rest-api.html">unicorn-binance-rest-api</a> &#187;</li>


Expand Down Expand Up @@ -145,6 +146,7 @@ <h3>Navigation</h3>
<h1>Source code for unicorn_binance_rest_api.exceptions</h1><div class="highlight"><pre>
<span></span><span class="ch">#!/usr/bin/env python3</span>
<span class="c1"># -*- coding: utf-8 -*-</span>
<span class="c1"># ¯\_(ツ)_/¯</span>
<span class="c1">#</span>
<span class="c1"># File: unicorn_binance_rest_api/exceptions.py</span>
<span class="c1">#</span>
Expand Down Expand Up @@ -383,6 +385,7 @@ <h3>Navigation</h3>

<li><img src="../../_static/lucit.png" alt="LUCIT Logo"
style="vertical-align: middle; margin-top: -1px"/></li>
<li><a href="https://docs.lucit.tech">Docs Index</a> | </li>
<li><a href="https://www.lucit.tech/unicorn-binance-rest-api.html">unicorn-binance-rest-api</a> &#187;</li>


Expand All @@ -408,9 +411,10 @@ <h3>Navigation</h3>
</ul>
</div>
<div class="footer">
<a href="https://docs.lucit.tech">Index of all LUCIT Software Documentation</a><br />
&copy; <a href="/license.html">Copyright</a> 2023-2023, LUCIT Systems and Development. All Rights Reserved..
See <a href="/license.html">License</a> for more information.<br />
Last updated on Nov 17 2023 at 13:05 (CET).
Last updated on May 17 2024 at 09:09 (CET).
<a href="https://github.com/LUCIT-Systems-and-Development/unicorn-binance-rest-api/issues/new/choose">Found a bug</a>?
<br />
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.2.6.
Expand Down
8 changes: 6 additions & 2 deletions docs/_modules/unicorn_binance_rest_api/helpers.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>unicorn_binance_rest_api.helpers &#8212; unicorn-binance-rest-api 2.1.0 documentation</title><meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>unicorn_binance_rest_api.helpers &#8212; unicorn-binance-rest-api 2.6.1 documentation</title><meta name="viewport" content="width=device-width, initial-scale=1.0">

<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=92fd9be5" />
<link rel="stylesheet" type="text/css" href="../../_static/pydoctheme.css?v=fdf8e9ae" />
Expand Down Expand Up @@ -112,6 +112,7 @@ <h3>Navigation</h3>

<li><img src="../../_static/lucit.png" alt="LUCIT Logo"
style="vertical-align: middle; margin-top: -1px"/></li>
<li><a href="https://docs.lucit.tech">Docs Index</a> | </li>
<li><a href="https://www.lucit.tech/unicorn-binance-rest-api.html">unicorn-binance-rest-api</a> &#187;</li>


Expand Down Expand Up @@ -145,6 +146,7 @@ <h3>Navigation</h3>
<h1>Source code for unicorn_binance_rest_api.helpers</h1><div class="highlight"><pre>
<span></span><span class="ch">#!/usr/bin/env python3</span>
<span class="c1"># -*- coding: utf-8 -*-</span>
<span class="c1"># ¯\_(ツ)_/¯</span>
<span class="c1">#</span>
<span class="c1"># File: unicorn_binance_rest_api/helpers.py</span>
<span class="c1">#</span>
Expand Down Expand Up @@ -316,6 +318,7 @@ <h3>Navigation</h3>

<li><img src="../../_static/lucit.png" alt="LUCIT Logo"
style="vertical-align: middle; margin-top: -1px"/></li>
<li><a href="https://docs.lucit.tech">Docs Index</a> | </li>
<li><a href="https://www.lucit.tech/unicorn-binance-rest-api.html">unicorn-binance-rest-api</a> &#187;</li>


Expand All @@ -341,9 +344,10 @@ <h3>Navigation</h3>
</ul>
</div>
<div class="footer">
<a href="https://docs.lucit.tech">Index of all LUCIT Software Documentation</a><br />
&copy; <a href="/license.html">Copyright</a> 2023-2023, LUCIT Systems and Development. All Rights Reserved..
See <a href="/license.html">License</a> for more information.<br />
Last updated on Nov 17 2023 at 13:05 (CET).
Last updated on May 17 2024 at 09:09 (CET).
<a href="https://github.com/LUCIT-Systems-and-Development/unicorn-binance-rest-api/issues/new/choose">Found a bug</a>?
<br />
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.2.6.
Expand Down
14 changes: 9 additions & 5 deletions docs/_modules/unicorn_binance_rest_api/manager.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>unicorn_binance_rest_api.manager &#8212; unicorn-binance-rest-api 2.6.0 documentation</title><meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>unicorn_binance_rest_api.manager &#8212; unicorn-binance-rest-api 2.6.1 documentation</title><meta name="viewport" content="width=device-width, initial-scale=1.0">

<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=92fd9be5" />
<link rel="stylesheet" type="text/css" href="../../_static/pydoctheme.css?v=fdf8e9ae" />
Expand Down Expand Up @@ -146,6 +146,7 @@ <h3>Navigation</h3>
<h1>Source code for unicorn_binance_rest_api.manager</h1><div class="highlight"><pre>
<span></span><span class="ch">#!/usr/bin/env python3</span>
<span class="c1"># -*- coding: utf-8 -*-</span>
<span class="c1"># ¯\_(ツ)_/¯</span>
<span class="c1">#</span>
<span class="c1"># File: unicorn_binance_rest_api/manager.py</span>
<span class="c1">#</span>
Expand Down Expand Up @@ -203,7 +204,7 @@ <h1>Source code for unicorn_binance_rest_api.manager</h1><div class="highlight">


<span class="n">__app_name__</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="s2">&quot;unicorn-binance-rest-api&quot;</span>
<span class="n">__version__</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="s2">&quot;2.6.0&quot;</span>
<span class="n">__version__</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="s2">&quot;2.6.1&quot;</span>
<span class="n">__logger__</span><span class="p">:</span> <span class="n">logging</span><span class="o">.</span><span class="n">getLogger</span> <span class="o">=</span> <span class="n">logging</span><span class="o">.</span><span class="n">getLogger</span><span class="p">(</span><span class="s2">&quot;unicorn_binance_rest_api&quot;</span><span class="p">)</span>

<span class="n">logger</span> <span class="o">=</span> <span class="n">__logger__</span>
Expand Down Expand Up @@ -6612,7 +6613,7 @@ <h1>Source code for unicorn_binance_rest_api.manager</h1><div class="highlight">

<div class="viewcode-block" id="BinanceRestApiManager.get_used_weight">
<a class="viewcode-back" href="../../unicorn_binance_rest_api.html#unicorn_binance_rest_api.manager.BinanceRestApiManager.get_used_weight">[docs]</a>
<span class="k">def</span> <span class="nf">get_used_weight</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">cached</span><span class="p">:</span> <span class="nb">bool</span> <span class="o">=</span> <span class="kc">False</span><span class="p">,</span> <span class="n">cached_timeout</span><span class="p">:</span> <span class="nb">float</span> <span class="o">=</span> <span class="kc">None</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">Optional</span><span class="p">[</span><span class="nb">dict</span><span class="p">]:</span>
<span class="k">def</span> <span class="nf">get_used_weight</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">cached</span><span class="p">:</span> <span class="nb">bool</span> <span class="o">=</span> <span class="kc">False</span><span class="p">,</span> <span class="n">cached_timeout</span><span class="p">:</span> <span class="n">Optional</span><span class="p">[</span><span class="nb">float</span><span class="p">]</span> <span class="o">=</span> <span class="kc">None</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">Optional</span><span class="p">[</span><span class="nb">dict</span><span class="p">]:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Get the used weight from Binance endpoints (weight costs: 1)</span>

Expand All @@ -6633,8 +6634,11 @@ <h1>Source code for unicorn_binance_rest_api.manager</h1><div class="highlight">
<span class="sd"> }</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="k">if</span> <span class="n">cached</span> <span class="ow">is</span> <span class="kc">True</span><span class="p">:</span>
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">used_weight</span><span class="p">[</span><span class="s1">&#39;timestamp&#39;</span><span class="p">]</span> <span class="o">&lt;</span> <span class="p">(</span><span class="n">time</span><span class="o">.</span><span class="n">time</span><span class="p">()</span> <span class="o">-</span> <span class="n">cached_timeout</span><span class="p">):</span>
<span class="k">if</span> <span class="n">cached_timeout</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span> <span class="ow">and</span> <span class="bp">self</span><span class="o">.</span><span class="n">used_weight</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="bp">self</span><span class="o">.</span><span class="n">ping</span><span class="p">()</span>
<span class="k">elif</span> <span class="n">cached_timeout</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span> <span class="ow">and</span> <span class="bp">self</span><span class="o">.</span><span class="n">used_weight</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span><span class="p">:</span>
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">used_weight</span><span class="p">[</span><span class="s1">&#39;timestamp&#39;</span><span class="p">]</span> <span class="o">&lt;</span> <span class="p">(</span><span class="n">time</span><span class="o">.</span><span class="n">time</span><span class="p">()</span> <span class="o">-</span> <span class="n">cached_timeout</span><span class="p">):</span>
<span class="bp">self</span><span class="o">.</span><span class="n">ping</span><span class="p">()</span>
<span class="k">else</span><span class="p">:</span>
<span class="bp">self</span><span class="o">.</span><span class="n">ping</span><span class="p">()</span>
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">used_weight</span></div>
Expand Down Expand Up @@ -8179,7 +8183,7 @@ <h3>Navigation</h3>
<a href="https://docs.lucit.tech">Index of all LUCIT Software Documentation</a><br />
&copy; <a href="/license.html">Copyright</a> 2023-2023, LUCIT Systems and Development. All Rights Reserved..
See <a href="/license.html">License</a> for more information.<br />
Last updated on May 16 2024 at 23:01 (CET).
Last updated on May 17 2024 at 09:09 (CET).
<a href="https://github.com/LUCIT-Systems-and-Development/unicorn-binance-rest-api/issues/new/choose">Found a bug</a>?
<br />
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.2.6.
Expand Down
6 changes: 5 additions & 1 deletion docs/_sources/changelog.md.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p

[How to upgrade to the latest version!](https://unicorn-binance-rest-api.docs.lucit.tech/readme.html#installation-and-upgrade)

## 2.6.0.dev (development stage/unreleased/unstable)
## 2.6.1.dev (development stage/unreleased/unstable)

## 2.6.1
### Fixed
- TypeError: unsupported operand type(s) for -: 'float' and 'NoneType' in `get_used_weight()`

## 2.6.0
### Added
Expand Down
14 changes: 7 additions & 7 deletions docs/_sources/readme.md.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[![Get a UNICORN Binance Suite License](https://raw.githubusercontent.com/LUCIT-Systems-and-Development/unicorn-binance-suite/master/images/logo/LUCIT-UBS-License-Offer.png)](https://shop.lucit.services)

[![Anaconda Release](https://img.shields.io/conda/v/lucit/unicorn-binance-rest-api?color=blue)](https://anaconda.org/lucit/unicorn-binance-rest-api)
[![GitHub Release](https://img.shields.io/github/release/LUCIT-Systems-and-Development/unicorn-binance-rest-api.svg?label=github)](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-rest-api/releases)
[![GitHub Downloads](https://img.shields.io/github/downloads/LUCIT-Systems-and-Development/unicorn-binance-rest-api/total?color=blue)](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-rest-api/releases)
![Anaconda Release](https://img.shields.io/conda/v/lucit/unicorn-binance-rest-api?color=blue)
![Anaconda Downloads](https://img.shields.io/conda/dn/lucit/unicorn-binance-rest-api?color=blue)
[![PyPi Release](https://img.shields.io/pypi/v/unicorn-binance-rest-api?color=blue)](https://pypi.org/project/unicorn-binance-rest-api/)
[![PyPi Downloads](https://pepy.tech/badge/unicorn-binance-rest-api)](https://pepy.tech/project/unicorn-binance-rest-api)
[![License](https://img.shields.io/badge/license-LSOSL-blue)](https://unicorn-binance-rest-api.docs.lucit.tech/license.html)
[![Supported Python Version](https://img.shields.io/pypi/pyversions/unicorn_binance_rest_api.svg)](https://www.python.org/downloads/)
[![License](https://img.shields.io/badge/license-LSOSL-blue)](https://unicorn-binance-rest-api.docs.lucit.tech/license.html)
[![PyPi Downloads](https://pepy.tech/badge/unicorn-binance-rest-api)](https://pepy.tech/project/unicorn-binance-rest-api)
[![PyPi Downloads](https://pepy.tech/badge/unicorn-binance-rest_api/month)](https://pepy.tech/project/unicorn-binance-rest-api)
[![PyPi Downloads](https://pepy.tech/badge/unicorn-binance-rest_api/week)](https://pepy.tech/project/unicorn-binance-rest-api)
[![PyPI - Status](https://img.shields.io/pypi/status/unicorn_binance_rest_api.svg)](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-rest-api/issues)
[![codecov](https://codecov.io/gh/LUCIT-Systems-and-Development/unicorn-binance-rest-api/branch/master/graph/badge.svg?token=5I03AZ3F5S)](https://codecov.io/gh/LUCIT-Systems-and-Development/unicorn-binance-rest-api)
[![CodeQL](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-rest-api/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-rest-api/actions/workflows/codeql-analysis.yml)
Expand Down Expand Up @@ -247,10 +247,10 @@ Run in bash:
`pip install https://github.com/LUCIT-Systems-and-Development/unicorn-binance-rest-api/archive/$(curl -s https://api.github.com/repos/lucit-systems-and-development/unicorn-binance-rest-api/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")').tar.gz --upgrade`

#### Windows
Use the below command with the version (such as 2.6.0) you determined
Use the below command with the version (such as 2.6.1) you determined
[here](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-rest-api/releases/latest):

`pip install https://github.com/LUCIT-Systems-and-Development/unicorn-binance-rest-api/archive/2.6.0.tar.gz --upgrade`
`pip install https://github.com/LUCIT-Systems-and-Development/unicorn-binance-rest-api/archive/2.6.1.tar.gz --upgrade`

### From the latest source (dev-stage) with PIP from [GitHub](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-rest-api)
This is not a release version and can not be considered to be stable!
Expand Down
Loading

0 comments on commit 3f3ae59

Please sign in to comment.