Skip to content

Commit

Permalink
Merge pull request #72 from bybit-exchange/update_changelog
Browse files Browse the repository at this point in the history
update version & changelog
  • Loading branch information
dextertd authored Oct 7, 2022
2 parents 27a9f16 + 7b9402e commit 4682469
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,19 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.4.1] - 2022-10-07
- See below release candidates for further changes.

## Fixed
- Wrong endpoint path in `usdc_perpetual.py`
- Wrong endpoint path in `account_asset.py`


## [2.4.0rc1] - 2022-09-20
### Fixed
- USDC API's timestamp parameter


## [2.4.0rc0] - 2022-09-15
### Modified
- The way in which the WebSocket handles errors, improving general usage and debugging (tracebacks) as well as clearly defining under which errors should the WebSocket attempt reconnection.
Expand Down
2 changes: 1 addition & 1 deletion pybit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
from json.decoder import JSONDecodeError

# Versioning.
VERSION = '2.4.0rc1'
VERSION = '2.4.1'


class HTTP:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setup(
name='pybit',
version='2.4.0rc1',
version='2.4.1',
description='Python3 Bybit HTTP/WebSocket API Connector',
long_description=long_description,
long_description_content_type='text/markdown',
Expand Down

1 comment on commit 4682469

@quantfreedom
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where do we go or who do we have to ask if we have a request?

I am looking to have the ability to place a take profit limit post only order along with creating a limit or market order

something like this
session.place_active_order(
symbol="BTCUSDT",
side="Buy",
order_type="Market",
qty=0.01,
time_in_force="GoodTillCancel",
reduce_only=False,
close_on_trigger=False,
position_idx=0,
stop_loss=18800,
take_profit=20000,
take_profit_type="limit",
take_profit_time_in_force='PostOnly",
take_profit_close_if_sl_hit='True
)
@dextertd
something like this where we can say we want it to be a limit post only and if the sl associated with the order that was created is hit that the take profit auto closes

Please sign in to comment.