Skip to content

Commit

Permalink
Refactor and unify simulated orders (paper trading)
Browse files Browse the repository at this point in the history
  • Loading branch information
carkod committed Dec 9, 2024
1 parent 756c481 commit ac6477a
Show file tree
Hide file tree
Showing 19 changed files with 905 additions and 893 deletions.
7 changes: 3 additions & 4 deletions api/account/account.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import requests
import os
import pandas
from apis import BinbotApi
from tools.handle_error import (
handle_binance_errors,
Expand All @@ -9,8 +11,6 @@
from database.db import setup_db
from requests_cache import CachedSession, MongoCache
from pymongo import MongoClient
import os
import pandas
from decimal import Decimal


Expand Down Expand Up @@ -253,8 +253,7 @@ def matching_engine(self, symbol: str, order_side: bool, qty=None):
@param: qty - quantity wanted to be bought/sold
"""

params = [("symbol", symbol)]
res = requests.get(url=self.order_book_url, params=params)
res = requests.get(url=self.order_book_url, params={"symbol": symbol})
data = handle_binance_errors(res)

if order_side:
Expand Down
338 changes: 0 additions & 338 deletions api/bots/controllers.py

This file was deleted.

Loading

0 comments on commit ac6477a

Please sign in to comment.