Skip to main content

woofipro-python

Python SDK (sync and async) for Woofipro cryptocurrency exchange with Rest and WS capabilities.

Installation

pip install woofipro-api

Usage

Sync

from woofipro import WoofiproSync

def main():
    instance = WoofiproSync({})
    ob =  instance.fetch_order_book("BTC/USDC")
    print(ob)
    #
    # balance = instance.fetch_balance()
    # order = instance.create_order("BTC/USDC", "limit", "buy", 1, 100000)

main()

Async

import sys
import asyncio
from woofipro import WoofiproAsync

### on Windows, uncomment below:
# if sys.platform == 'win32':
# 	asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())

async def main():
    instance = WoofiproAsync({})
    ob =  await instance.fetch_order_book("BTC/USDC")
    print(ob)
    #
    # balance = await instance.fetch_balance()
    # order = await instance.create_order("BTC/USDC", "limit", "buy", 1, 100000)

    # once you are done with the exchange
    await instance.close()

asyncio.run(main())

Websockets

import sys
from woofipro import WoofiproWs

### on Windows, uncomment below:
# if sys.platform == 'win32':
# 	asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())

async def main():
    instance = WoofiproWs({})
    while True:
        ob = await instance.watch_order_book("BTC/USDC")
        print(ob)
        # orders = await instance.watch_orders("BTC/USDC")

    # once you are done with the exchange
    await instance.close()

asyncio.run(main())

Raw call

You can also construct custom requests to available "implicit" endpoints

        request = {
            'type': 'candleSnapshot',
            'req': {
                'coin': coin,
                'interval': tf,
                'startTime': since,
                'endTime': until,
            },
        }
        response = await instance.public_post_info(request)

Available methods

REST Unified

  • create_order_request(self, symbol: Str, type: Str, side: Str, amount: Num, price: Num = None, params: dict = {})
  • create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params: dict = {})
  • create_orders(self, orders: list[OrderRequest], params: dict = {})
  • fetch_balance(self, params: dict = {})
  • fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params: dict = {})
  • fetch_currencies(self, params: dict = {})
  • fetch_deposits_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params: dict = {})
  • fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params: dict = {})
  • fetch_funding_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params: dict = {})
  • fetch_funding_interval(self, symbol: str, params: dict = {})
  • fetch_funding_rate_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params: dict = {})
  • fetch_funding_rate(self, symbol: str, params: dict = {})
  • fetch_funding_rates(self, symbols: Strings = None, params: dict = {})
  • fetch_ledger(self, code: Str = None, since: Int = None, limit: Int = None, params: dict = {})
  • fetch_leverage(self, symbol: str, params: dict = {})
  • fetch_margin_mode(self, symbol: str, params: dict = {})
  • fetch_margin_modes(self, symbols: Strings = None, params: dict = {})
  • fetch_markets(self, params: dict = {})
  • fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params: dict = {})
  • fetch_ohlcv(self, symbol: str, timeframe: str = '1m', since: Int = None, limit: Int = None, params: dict = {})
  • fetch_open_interest(self, symbol: str, params: dict = {})
  • fetch_open_interests(self, symbols: Strings = None, params: dict = {})
  • fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params: dict = {})
  • fetch_order_book(self, symbol: str, limit: Int = None, params: dict = {})
  • fetch_order_trades(self, id: str, symbol: Str = None, since: Int = None, limit: Int = None, params: dict = {})
  • fetch_order(self, id: str, symbol: Str = None, params: dict = {})
  • fetch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params: dict = {})
  • fetch_position(self, symbol: str, params: dict = {})
  • fetch_positions(self, symbols: Strings = None, params: dict = {})
  • fetch_status(self, params: dict = {})
  • fetch_ticker(self, symbol: str, params: dict = {})
  • fetch_tickers(self, symbols: Strings = None, params: dict = {})
  • fetch_time(self, params: dict = {})
  • fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params: dict = {})
  • fetch_trading_fees(self, params: dict = {})
  • fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params: dict = {})
  • add_margin(self, symbol: str, amount: float, params: dict = {})
  • cancel_all_orders(self, symbol: Str = None, params: dict = {})
  • cancel_order(self, id: str, symbol: Str = None, params: dict = {})
  • cancel_orders(self, ids: list[str], symbol: Str = None, params: dict = {})
  • describe(self)
  • edit_order(self, id: str, symbol: str, type: OrderType, side: OrderSide, amount: Num = None, price: Num = None, params: dict = {})
  • get_asset_history_rows(self, code: Str = None, since: Int = None, limit: Int = None, params: dict = {})
  • get_withdraw_nonce(self, params: dict = {})
  • hash_message(self, message: object)
  • modify_margin_helper(self, symbol: str, amount: float, type: str, params: dict = {})
  • nonce(self)
  • reduce_margin(self, symbol: str, amount: float, params: dict = {})
  • set_leverage(self, leverage: int, symbol: Str = None, params: dict = {})
  • set_margin_mode(self, marginMode: str, symbol: Str = None, params: dict = {})
  • set_sandbox_mode(self, enable: bool)
  • withdraw(self, code: str, amount: float, address: str, params: dict = {})

REST Raw

  • v1_public_get_public_volume_stats(request)
  • v1_public_get_public_broker_name(request)
  • v1_public_get_public_chain_info_broker_id(request)
  • v1_public_get_public_system_info(request)
  • v1_public_get_public_vault_balance(request)
  • v1_public_get_public_insurancefund(request)
  • v1_public_get_public_chain_info(request)
  • v1_public_get_faucet_usdc(request)
  • v1_public_get_public_account(request)
  • v1_public_get_get_account(request)
  • v1_public_get_registration_nonce(request)
  • v1_public_get_get_orderly_key(request)
  • v1_public_get_public_liquidation(request)
  • v1_public_get_public_liquidated_positions(request)
  • v1_public_get_public_config(request)
  • v1_public_get_public_campaign_ranking(request)
  • v1_public_get_public_campaign_stats(request)
  • v1_public_get_public_campaign_user(request)
  • v1_public_get_public_campaign_stats_details(request)
  • v1_public_get_public_campaigns(request)
  • v1_public_get_public_points_leaderboard(request)
  • v1_public_get_client_points(request)
  • v1_public_get_public_points_epoch(request)
  • v1_public_get_public_points_epoch_dates(request)
  • v1_public_get_public_points_rankings(request)
  • v1_public_get_public_points_stages(request)
  • v1_public_get_public_referral_check_ref_code(request)
  • v1_public_get_public_referral_verify_ref_code(request)
  • v1_public_get_referral_admin_info(request)
  • v1_public_get_referral_info(request)
  • v1_public_get_referral_referee_info(request)
  • v1_public_get_referral_referee_rebate_summary(request)
  • v1_public_get_referral_referee_history(request)
  • v1_public_get_referral_referral_history(request)
  • v1_public_get_referral_rebate_summary(request)
  • v1_public_get_client_distribution_history(request)
  • v1_public_get_tv_config(request)
  • v1_public_get_tv_history(request)
  • v1_public_get_tv_symbol_info(request)
  • v1_public_get_tv_kline_history(request)
  • v1_public_get_public_funding_rate_history(request)
  • v1_public_get_public_funding_rate_symbol(request)
  • v1_public_get_public_funding_rates(request)
  • v1_public_get_public_info(request)
  • v1_public_get_public_info_symbol(request)
  • v1_public_get_public_market_trades(request)
  • v1_public_get_public_token(request)
  • v1_public_get_public_futures(request)
  • v1_public_get_public_futures_symbol(request)
  • v1_public_get_staking_valor2_batch_info(request)
  • v1_public_get_staking_valor2_pool_info(request)
  • v1_public_get_staking_valor2_revenue_buyback(request)
  • v1_public_post_register_account(request)
  • v1_private_get_client_key_info(request)
  • v1_private_get_client_orderly_key_ip_restriction(request)
  • v1_private_get_order_oid(request)
  • v1_private_get_client_order_client_order_id(request)
  • v1_private_get_algo_order_oid(request)
  • v1_private_get_algo_client_order_client_order_id(request)
  • v1_private_get_orders(request)
  • v1_private_get_algo_orders(request)
  • v1_private_get_trade_tid(request)
  • v1_private_get_trades(request)
  • v1_private_get_order_oid_trades(request)
  • v1_private_get_client_liquidator_liquidations(request)
  • v1_private_get_liquidations(request)
  • v1_private_get_asset_history(request)
  • v1_private_get_client_holding(request)
  • v1_private_get_withdraw_nonce(request)
  • v1_private_get_settle_nonce(request)
  • v1_private_get_transfer_nonce(request)
  • v1_private_get_pnl_settlement_history(request)
  • v1_private_get_volume_user_daily(request)
  • v1_private_get_volume_user_stats(request)
  • v1_private_get_client_statistics(request)
  • v1_private_get_client_info(request)
  • v1_private_get_client_statistics_daily(request)
  • v1_private_get_positions(request)
  • v1_private_get_position_symbol(request)
  • v1_private_get_funding_fee_history(request)
  • v1_private_get_notification_inbox_notifications(request)
  • v1_private_get_notification_inbox_unread(request)
  • v1_private_get_volume_broker_daily(request)
  • v1_private_get_broker_fee_rate_default(request)
  • v1_private_get_broker_user_info(request)
  • v1_private_get_broker_daily_fee_revenue(request)
  • v1_private_get_orderbook_symbol(request)
  • v1_private_get_kline(request)
  • v1_private_get_client_margin_modes(request)
  • v1_private_get_client_leverages(request)
  • v1_private_get_client_points_user_statistics(request)
  • v1_private_get_staking_valor2_redeem(request)
  • v1_private_get_referral_multi_level_admin(request)
  • v1_private_get_referral_multi_level_admin_info(request)
  • v1_private_get_referral_multi_level_admin_referee_list(request)
  • v1_private_get_referral_multi_level_admin_summary(request)
  • v1_private_get_referral_multi_level_max_rebate_rate(request)
  • v1_private_get_referral_multi_level_rebate_info(request)
  • v1_private_get_referral_multi_level_referee_list(request)
  • v1_private_get_referral_multi_level_statistics(request)
  • v1_private_get_referral_multi_level_volume_prerequisite(request)
  • v1_private_post_orderly_key(request)
  • v1_private_post_client_set_orderly_key_ip_restriction(request)
  • v1_private_post_client_reset_orderly_key_ip_restriction(request)
  • v1_private_post_order(request)
  • v1_private_post_batch_order(request)
  • v1_private_post_algo_order(request)
  • v1_private_post_liquidation(request)
  • v1_private_post_claim_insurance_fund(request)
  • v1_private_post_withdraw_request(request)
  • v1_private_post_settle_pnl(request)
  • v1_private_post_notification_inbox_mark_read(request)
  • v1_private_post_notification_inbox_mark_read_all(request)
  • v1_private_post_client_leverage(request)
  • v1_private_post_client_leverages(request)
  • v1_private_post_client_margin_mode(request)
  • v1_private_post_position_margin(request)
  • v1_private_post_client_maintenance_config(request)
  • v1_private_post_delegate_signer(request)
  • v1_private_post_delegate_orderly_key(request)
  • v1_private_post_delegate_settle_pnl(request)
  • v1_private_post_delegate_withdraw_request(request)
  • v1_private_post_broker_fee_rate_set(request)
  • v1_private_post_broker_fee_rate_set_default(request)
  • v1_private_post_broker_fee_rate_default(request)
  • v1_private_post_referral_create(request)
  • v1_private_post_referral_update(request)
  • v1_private_post_referral_bind(request)
  • v1_private_post_referral_edit_split(request)
  • v1_private_post_referral_edit_referee_description(request)
  • v1_private_post_referral_multi_level_admin(request)
  • v1_private_post_referral_multi_level_admin_create_affiliate(request)
  • v1_private_post_referral_multi_level_admin_reset_affiliate(request)
  • v1_private_post_referral_multi_level_admin_update(request)
  • v1_private_post_referral_multi_level_admin_update_affiliate(request)
  • v1_private_post_referral_multi_level_claim_code(request)
  • v1_private_post_referral_multi_level_rebate_rate_set_default(request)
  • v1_private_post_referral_multi_level_rebate_rate_update(request)
  • v1_private_put_order(request)
  • v1_private_put_algo_order(request)
  • v1_private_delete_order(request)
  • v1_private_delete_algo_order(request)
  • v1_private_delete_client_order(request)
  • v1_private_delete_algo_client_order(request)
  • v1_private_delete_algo_orders(request)
  • v1_private_delete_orders(request)
  • v1_private_delete_batch_order(request)
  • v1_private_delete_client_batch_order(request)
  • v2_private_post_internal_transfer(request)

WS Unified

  • describe(self)
  • watch_public(self, messageHash: str, message: dict)
  • watch_order_book(self, symbol: str, limit: Int = None, params: dict = {})
  • watch_ticker(self, symbol: str, params: dict = {})
  • watch_tickers(self, symbols: Strings = None, params: dict = {})
  • watch_bids_asks(self, symbols: Strings = None, params: dict = {})
  • watch_ohlcv(self, symbol: str, timeframe: str = '1m', since: Int = None, limit: Int = None, params: dict = {})
  • watch_trades(self, symbol: str, since: Int = None, limit: Int = None, params: dict = {})
  • authenticate(self, params: dict = {})
  • watch_private(self, messageHash: str, message: dict, params: dict = {})
  • watch_private_multiple(self, messageHashes: list[str], message: dict, params: dict = {})
  • watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params: dict = {})
  • watch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params: dict = {})
  • watch_positions(self, symbols: Strings = None, since: Int = None, limit: Int = None, params: dict = {})
  • set_positions_cache(self, client: Client, symbols: Strings = None)
  • load_positions_snapshot(self, client: Client, messageHash: str)
  • watch_balance(self, params: dict = {})
  • pong(self, client: Client, message: dict)

Contribution

  • Give us a star ⭐
  • Fork and Clone! Awesome
  • Select existing issues or create a new issue.

Metadata

Release files for woofipro-api 0.0.172

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for woofipro-api 0.0.172
File Size Uploaded Provenance Actions
woofipro_api-0.0.172.tar.gz 303.4 kB Without provenance Details for woofipro_api-0.0.172.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for woofipro-api 0.0.172
File Interpreter ABI Platform Actions
woofipro_api-0.0.172-py3-none-any.whl Python 3 none any Details for woofipro_api-0.0.172-py3-none-any.whl

Total release size: 644.9 kB

Release files / woofipro_api-0.0.172.tar.gz

Download URL woofipro_api-0.0.172.tar.gz
Size 303.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e72186c32cf6f6d48d4d2435a4918ba7b9f8a512dc435d7e449215c05315e524
BLAKE2b-256 checksum
How to use checksums
d88015ede8383e98b524192d5badf6fe14c54628fc7e43ff2cf4a7c9537abe3b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.1

Release files / woofipro_api-0.0.172-py3-none-any.whl

Download URL woofipro_api-0.0.172-py3-none-any.whl
Size 341.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e42e042ea136c0d4a6dd7f74e2929cbeb572665b3883d67cff5a072e6561b3f9
BLAKE2b-256 checksum
How to use checksums
be40c81ac20f65292d6a644f0775b662b77853df2b67491824d96586d4586b8e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.1

Security for woofipro-api 0.0.172

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.172 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page