Skip to content

Comments

Add unwatchPositions to bybit pro#3

Open
pcriadoperez wants to merge 2 commits intomasterfrom
cursor/add-unwatchpositions-to-bybit-pro-bf88
Open

Add unwatchPositions to bybit pro#3
pcriadoperez wants to merge 2 commits intomasterfrom
cursor/add-unwatchpositions-to-bybit-pro-bf88

Conversation

@pcriadoperez
Copy link
Owner

Add unwatchPositions method and its test to enable unsubscription from WebSocket position updates.


Open in WebOpen in Cursor

cursoragent and others added 2 commits July 23, 2025 01:04
Co-authored-by: pablo <pablo@ciudadela.eu>
Co-authored-by: pablo <pablo@ciudadela.eu>
pcriadoperez pushed a commit that referenced this pull request Jul 28, 2025
* Foxbit's CCXT integration (#3)

* Fixed foxbit in ts

* Fixed async functions ccxt

* Endpoint privates

* add endpoints

* Fixed currencies and markets

* Fixed timeframe

* Fixed call test foxbit

* Fixed new endpoints

* Fixed new endpoint

* Fixed endpoint Orderbook

* feat: add adjustments to tickers on fetchTicker and fetchTickers methods

* feat: create fetchOHLCV method

* feat: add integrations to fetchTrades and fetchBalance (private route)

* feat: add fetchOrder and fetchOrders

* feat: add cancelOrder

* feat: add fetchOpenOrders and fetchClosedOrders

* feat: enhance/fix fetchMyTrades

* feat: add fetchDepositAddress

* feat: add fetchDeposits

* feat: add fetchWithdrawals and fetchTransactions

* enhance: add more information to fetchCurrencies

* enhance: add more information to fetchMarkets

* fix: remove url encode from signature query string

* chore: remove resolved TODOs

* chore: remove non-sense TODO

* feat: remove unused clause

* feat: add tests to fetchTicker and fetchTickers

* fix: remove fetchCurrencies test

* feat: add tests to fetchOrderBook

* fix: remove huge response mocks

* feat: add OHLCV tests + fix

* feat: add fetchTrades tests + fix

* feat: add createOrder tests + fix on stop market

* feat: add cancelOrders tests

* feat: create fetchOrder tests

* feat: add fetchOrders tests

* feat: add fetchOpenOrders tests

* feat: add fetchClosedOrders tests

* feat: add fetchMyTrades tests

* feat: add fetchDeposits tests

* feat: add fetchWithdrawals tests

* feat: add fetchTransactions tests

* feat: add fetchDepositAddress tests

* feat: add cancelAllOrders method

* chore: organize has fields on config

* feat: remove fixed markets and currencies

* feat: add status route

* feat: add editOrder method

* feat: add withdraw route

* fix: sign only private requests

* feat: add docstrings

* fix: imports

* feat: add rate limit informations

* fix: build

* fix: remove consoles and change string type

* feat: add ws false

* fix: remove pro and certified options

* fix: remove foxbit from imports on ccxt.ts

* fix: very funny bug with a "Client" on docstring crashing the transpile

* feat: add currencies and markets statics

* feat: add networks to currencies route

* fix: all tests to pass

* feat: add post_only field

* fix: status call and remove comment

* fix: use milisseconds instead of now

* fix: remove object keys from array

* fix: hmac encode

* fix: parseOHLCV method

* fix: parse params to string to concatenate

* fix: tick size and logic to validate order type

* fix: details on ts implementation due wrong translation

* feat: add fetchTradingFees and fetchLedger methods

* fix: EOF

* fix: EOF

* fix: remove all safeValue references

* feat: add error handlers

* fix: precisionMode

* fix: tests

* fix: tests on python async

* feat: add missing static request tests

* fix: change indent size to 4

* feat: remove nested method calls

* feat: add many response tests to foxbit (missing 8)

* feat: finish all response tests

* fix: use parsed data instead of response.data directly

* feat: add type to fetchDepositAddress

* fix: new tests

* fix: new tests

* fix: new tests

* enhance: use parseMarkets instead of direct market parsing

* feat: move docs upwards

* fix: PHP transpile

* fix: PHP transpile

* fix: PHP transpile

* fix: PHP transpile

* fix: PHP transpile

* fix: PHP transpile

* fix: tests on ccxt

* fix: update input for order request tests

* fix: change direct claculation to use Precise

* fix: remove test mock

* feat: add safeTimeframe to avoid null

* feat: add maker/taker fees to markets structure

* feat: add features into foxbit's config

* feat: add features details on comments

* fix: remove empty line

* fix: remove comment at wrong place

* fix: logic with depth, to avoid passing null

* fix: return default limit to 20

* feat: map new order status PENDING_CANCEL

* feat: add sandbox mode, add more methods on has and add fields to parseOrder

* fix: tests

* fix: remove ternary (python transpile problem)

* fix: remove sandbox mode

* feat: add post-only orders support by time-in-force param

* fix: change createOrder received params + enhance order parsing to consider more fields

* fix: foxbit request static tests

* fix: foxbit's response tests

* feat: enhance networks mapping + withdrawal network support + use safe currencies structure

* feat: add createOrders method (create multiple orders in batch)

* fix: use safe methods instead of accessing params directly on createOrders

* fix: network code param on deposit address generation

* fix: send unified network on fetchDepositAddress

* fix: tests

---------

Co-authored-by: brunoneville31 <brunoneville31@gmail.com>

* Adding new currencies field 'type' (#5)

* trigger dummy change

* add test

* cr fixes

* add market

* use marketId instead

* add virtual method

* fix response tests

* add method to itnerface

* rm all safeFloat

* other fixes

---------

Co-authored-by: Theo Nejm <117743440+theonejm-fb@users.noreply.github.com>
Co-authored-by: brunoneville31 <brunoneville31@gmail.com>
Co-authored-by: Bruno Soares <github@bsoares.com>
Co-authored-by: matheus-alcuri-foxbit <109529128+matheus-alcuri-foxbit@users.noreply.github.com>
pcriadoperez pushed a commit that referenced this pull request Aug 10, 2025
* add hibachi

* Implement fetchCurrencies (#2)

* fetchCurrencies

* fix typo

* fetchBalance (#3)

* Implement `fetchTicker` (#5)

* impl

* pass market as param

* whitespace

* change to string

* [ENG-5178] Public - Market Data - fetchTrades (#4)

* save

* save

* Update hibachi.ts

* create and cancel order (ccxt#7)

* editOrder (ccxt#10)

* improve signature (ccxt#11)

* Implement `fetchOrderBook` (ccxt#9)

* wip

* impl

* example

* fix

* include ts

* camelCase

* withdraw (ccxt#12)

* Implement `fetchTradingFees` (ccxt#13)

* impl

* forgot to push

* boolean change

* simplify trading fees logic

* Revert "simplify trading fees logic"

This reverts commit 027b019.

* change hardcoded fees

* Revert "change hardcoded fees"

This reverts commit d82c7ab.

* Support signature for exchange managed account (ccxt#14)

* Support exchange managed account

* Implement `fetchTradingFees` (ccxt#13)

* impl

* forgot to push

* boolean change

* simplify trading fees logic

* Revert "simplify trading fees logic"

This reverts commit 027b019.

* change hardcoded fees

* Revert "change hardcoded fees"

This reverts commit d82c7ab.

---------

Co-authored-by: vincent-hibachi-xyz <vincent@hibachi.xyz>

* fetchMyTrades (ccxt#15)

* Implement `fetchDepositAddress` (ccxt#16)

* impl

* change network + currency codes

* add note for deposit address

* add required credentials check

* [Eng-5154] implement fetch ohlcv (ccxt#8)

* draft

* fix

* Update hibachi-example.ts

* Delete examples/js/hibachi-example.js

* address comment

* Update hibachi.ts

* address comment

* Implement fetchLedger (ccxt#19)

* fetchLedger

* update examples

* Yang/eng 5185 private history fetch order (ccxt#18)

* Update hibachi.ts

* Update hibachi.ts

* fix

* save

* Update hibachi.ts

* Update hibachi.ts

* Update hibachi-example.ts

* Update hibachi.ts

* error handling and settings (ccxt#21)

* Implement `fetchOpenOrders` (ccxt#17)

* wip

* abstract

* impl

* whitespace fix

* make symbol optional in documentaiton

* add trigger price

* advanced order (ccxt#22)

* changebase fee (ccxt#23)

* Implement `fetchDeposits` and `fetchWithdrawals` (ccxt#20)

* wip

* impl

* add safeCurrency

* change type to list

* transaction parsing

* typo

* fixes

* add extend param

* add transaction type deposit and withdrawal

* fix unit tests

* address feedback (ccxt#24)

* add tests and some small fixes

* add logo

* add ref

* add fetchPositions test

* fetchTime

* fetchOpenInterest

* fix typo

* fetchFundingRate

* fetchFundingRateHistory

* cancelAllOrders

* cancelOrders

* createOrders

* editOrders

* rename

* update accountId

* fix return type

* skip keys

* fix c# header problem

* skip some c# tests

* fix response tests

* add accountId

* update intTobase16

* fix c# tests

* update import

* tmp disable go test

* try encode

* fix several issues

* fix padStart issue

* fix php

* skip test

* add info key

---------

Co-authored-by: Gaoyuan Chen <gaoyuan@hibachi.xyz>
Co-authored-by: gaoyuan-hibachi-xyz <158541870+gaoyuan-hibachi-xyz@users.noreply.github.com>
Co-authored-by: vincent-hibachi-xyz <vincent@hibachi.xyz>
Co-authored-by: yang-hibachi-xyz <yang@hibachi.xyz>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants