initial algo logic

This commit is contained in:
2026-04-23 06:39:51 +00:00
parent 539e6004cf
commit ff209603b6
3 changed files with 215 additions and 17 deletions

View File

@@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": null,
"execution_count": 4,
"id": "6c70a8c3",
"metadata": {},
"outputs": [],
@@ -21,13 +21,13 @@
"import asyncio\n",
"import logging\n",
"from decimal import Decimal\n",
"\n",
"import modules.extended_auth as extend_auth\n",
"\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 5,
"id": "ff971ca9",
"metadata": {},
"outputs": [],
@@ -47,6 +47,16 @@
"ORDER_PRICE = Decimal(\"75000\")"
]
},
{
"cell_type": "code",
"execution_count": 8,
"id": "fc2c6d2b",
"metadata": {},
"outputs": [],
"source": [
"client, trading_client = await extend_auth.create_auth_account_and_trading_client()"
]
},
{
"cell_type": "code",
"execution_count": null,
@@ -54,13 +64,13 @@
"metadata": {},
"outputs": [],
"source": [
"placed_order = await trading_client.place_order(\n",
" market_name=ORDER_MARKET,\n",
" amount_of_synthetic=ORDER_QTY,\n",
" price=ORDER_PRICE,\n",
" side=ORDER_SIDE,\n",
" taker_fee=Decimal(\"0.00025\")\n",
")"
"# placed_order = await trading_client.place_order(\n",
"# market_name=ORDER_MARKET,\n",
"# amount_of_synthetic=ORDER_QTY,\n",
"# price=ORDER_PRICE,\n",
"# side=ORDER_SIDE,\n",
"# taker_fee=Decimal(\"0.00025\")\n",
"# )"
]
},
{