Skip to content

Commit 5eed04c

Browse files
authored
Merge pull request #9 from hummingbot/feat/std_trade_type
Feat/std trade type
2 parents 3cc235e + f15b1d6 commit 5eed04c

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

.github/workflows/publish-to-pypi.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ name: Publish to PyPI
33
on:
44
push:
55
branches: [ main ]
6-
pull_request:
7-
branches: [ main ]
8-
types: [ closed ]
96

107
jobs:
118
publish:

hummingbot_api_client/routers/trading.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ async def place_order(
1111
account_name: str,
1212
connector_name: str,
1313
trading_pair: str,
14-
side: str,
14+
trade_type: str,
1515
amount: float,
1616
order_type: str = "MARKET",
1717
price: Optional[float] = None,
@@ -24,7 +24,7 @@ async def place_order(
2424
account_name: Account to trade with (e.g., "master_account")
2525
connector_name: Exchange connector (e.g., "binance", "binance_perpetual")
2626
trading_pair: Trading pair (e.g., "BTC-USDT")
27-
side: "BUY" or "SELL"
27+
trade_type: "BUY" or "SELL"
2828
amount: Amount to trade (in base currency)
2929
order_type: "MARKET", "LIMIT", or "LIMIT_MAKER" (default: "MARKET")
3030
price: Price for limit orders (required for LIMIT orders)
@@ -49,7 +49,7 @@ async def place_order(
4949
"account_name": account_name,
5050
"connector_name": connector_name,
5151
"trading_pair": trading_pair,
52-
"trade_type": side,
52+
"trade_type": trade_type,
5353
"amount": amount,
5454
"order_type": order_type,
5555
"position_action": position_action

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "hummingbot-api-client"
7-
version = "1.0.8"
7+
version = "1.0.9"
88
description = "An async Python client for Hummingbot API"
99
readme = "README.md"
1010
requires-python = ">=3.8"

0 commit comments

Comments
 (0)