Implement strategies and posting trades

This commit is contained in:
2022-10-27 18:08:40 +01:00
parent 7e4f3f52d1
commit 061c6f6ca7
32 changed files with 1060 additions and 178 deletions

View File

@@ -27,7 +27,7 @@
<div class="buttons">
<button
hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'
hx-get="#trade-edit"
hx-get="#"
hx-trigger="click"
hx-target="#{{ type }}s-here"
class="button is-info">
@@ -50,7 +50,7 @@
</span>
</button>
{% if type == 'page' %}
<a href="#trade-info">
<a href="{% url 'position_action' type=type account_id=item.account_id asset_id=item.asset_id %}">
<button
class="button is-success">
<span class="icon-text">
@@ -63,7 +63,7 @@
{% else %}
<button
hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'
hx-get="#trade-info"
hx-get="{% url 'position_action' type=type account_id=item.account_id asset_id=item.asset_id %}"
hx-trigger="click"
hx-target="#{{ type }}s-here"
class="button is-success">