Skip to content

Commit

Permalink
Merge pull request #392 from enarjord/v5.9.6
Browse files Browse the repository at this point in the history
v5.9.6
  • Loading branch information
enarjord authored Apr 7, 2023
2 parents f8cd260 + d1300e1 commit 9c2cc60
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

:warning: **Use at own risk** :warning:

v5.9.5
v5.9.6


## Overview
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion kucoin.py → exchanges/kucoin.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,6 @@ async def get_server_time(self):
async def fetch_position(self) -> dict:
positions, balance = None, None
try:

positions, balance = await asyncio.gather(
self.private_get(self.endpoints["position"], {"symbol": self.symbol}),
self.private_get(self.endpoints["balance"], {"currency": self.quote}),
Expand Down
2 changes: 2 additions & 0 deletions okx.py → exchanges/okx.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@ async def execute_orders(self, orders: [dict]) -> [dict]:
if "custom_id" in order:
custom_id_ += order["custom_id"]
params["clOrdId"] = shorten_custom_id(f"{custom_id_}{uuid.uuid4().hex}")[:32]
# print('debug client order id', params['clOrdId'])
# print('debug execute order', params)
to_execute.append(params)
executed = await self.okx.private_post_trade_batch_orders(params=to_execute)
to_return = []
Expand Down
12 changes: 6 additions & 6 deletions procedures.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,47 +284,47 @@ async def fetch_market_specific_settings_old(config: dict):


async def create_binance_bot(config: dict):
from binance import BinanceBot
from exchanges.binance import BinanceBot

bot = BinanceBot(config)
await bot._init()
return bot


async def create_binance_bot_spot(config: dict):
from binance_spot import BinanceBotSpot
from exchanges.binance_spot import BinanceBotSpot

bot = BinanceBotSpot(config)
await bot._init()
return bot


async def create_bybit_bot(config: dict):
from bybit import BybitBot
from exchanges.bybit import BybitBot

bot = BybitBot(config)
await bot._init()
return bot


async def create_bitget_bot(config: dict):
from bitget import BitgetBot
from exchanges.bitget import BitgetBot

bot = BitgetBot(config)
await bot._init()
return bot


async def create_okx_bot(config: dict):
from okx import OKXBot
from exchanges.okx import OKXBot

bot = OKXBot(config)
await bot._init()
return bot


async def create_kucoin_bot(config: dict):
from kucoin import KuCoinBot
from exchanges.kucoin import KuCoinBot

bot = KuCoinBot(config)
await bot._init()
Expand Down

0 comments on commit 9c2cc60

Please sign in to comment.