Skip to content

Commit bb38ae5

Browse files
author
github-actions
committed
examples change
[TRANSFER][PUBLISH]
1 parent 7515511 commit bb38ae5

File tree

291 files changed

+11
-75312
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

291 files changed

+11
-75312
lines changed

README.md

Lines changed: 0 additions & 519 deletions
This file was deleted.

build/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"scripts": {
77
"build-single-exchange": "tsx build.ts",
88
"pypi-packager": "tsx pypi-packager.ts",
9+
910
"sample-generate": "cd ../.github/scripts/ && bash generate-exchange-skeleton.sh ../../../tmp_folder kucoin",
1011
"sample-build": "cd ../../tmp_folder/build && npm run build-single-exchange",
1112
"sample-pypi": "cd ../../tmp_folder/build && npm run pypi-packager",
@@ -16,8 +17,7 @@
1617
"dependencies": {
1718
"fs": "*",
1819
"path": "*",
19-
"semver": "^7.7.1",
20-
"typescript": "^5.8.2"
20+
"semver": "^7.7.1"
2121
},
2222
"devDependencies": {
2323
"tsx": "^4.19.3"

build/templates/README.md

Lines changed: 9 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ import sys
3434
import asyncio
3535
from __exchangeName__ import __ExchangeName__Async
3636

37-
if sys.platform == 'win32':
38-
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
37+
### on Windows, uncomment below:
38+
# if sys.platform == 'win32':
39+
# asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
3940

4041
async def main():
4142
instance = __ExchangeName__Async({})
@@ -59,8 +60,9 @@ asyncio.run(main())
5960
import sys
6061
from __exchangeName__ import __ExchangeName__Ws
6162

62-
if sys.platform == 'win32':
63-
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
63+
### on Windows, uncomment below:
64+
# if sys.platform == 'win32':
65+
# asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
6466

6567
async def main():
6668
instance = __ExchangeName__Ws({})
@@ -99,89 +101,15 @@ You can also construct custom requests to available "implicit" endpoints
99101

100102
### REST Unified
101103

102-
- `create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={})`
103-
- `create_orders_request(self, orders, params={})`
104-
- `create_orders(self, orders: List[OrderRequest], params={})`
105-
- `fetch_balance(self, params={})`
106-
- `fetch_canceled_and_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={})`
107-
- `fetch_canceled_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={})`
108-
- `fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={})`
109-
- `fetch_currencies(self, params={})`
110-
- `fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={})`
111-
- `fetch_funding_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={})`
112-
- `fetch_funding_rate_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={})`
113-
- `fetch_funding_rates(self, symbols: Strings = None, params={})`
114-
- `fetch_ledger(self, code: Str = None, since: Int = None, limit: Int = None, params={})`
115-
- `fetch_markets(self, params={})`
116-
- `fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={})`
117-
- `fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={})`
118-
- `fetch_open_interest(self, symbol: str, params={})`
119-
- `fetch_open_interests(self, symbols: Strings = None, params={})`
120-
- `fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={})`
121-
- `fetch_order_book(self, symbol: str, limit: Int = None, params={})`
122-
- `fetch_order(self, id: str, symbol: Str = None, params={})`
123-
- `fetch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={})`
124-
- `fetch_position(self, symbol: str, params={})`
125-
- `fetch_positions(self, symbols: Strings = None, params={})`
126-
- `fetch_spot_markets(self, params={})`
127-
- `fetch_swap_markets(self, params={})`
128-
- `fetch_tickers(self, symbols: Strings = None, params={})`
129-
- `fetch_trades(self, symbol: Str, since: Int = None, limit: Int = None, params={})`
130-
- `fetch_trading_fee(self, symbol: str, params={})`
131-
- `fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={})`
132-
- `action_hash(self, action, vaultAddress, nonce)`
133-
- `add_margin(self, symbol: str, amount: float, params={})`
134-
- `amount_to_precision(self, symbol, amount)`
135-
- `build_usd_class_send_sig(self, message)`
136-
- `build_usd_send_sig(self, message)`
137-
- `build_withdraw_sig(self, message)`
138-
- `calculate_price_precision(self, price: float, amountPrecision: float, maxDecimals: float)`
139-
- `calculate_rate_limiter_cost(self, api, method, path, params, config={})`
140-
- `cancel_all_orders_after(self, timeout: Int, params={})`
141-
- `cancel_order(self, id: str, symbol: Str = None, params={})`
142-
- `cancel_orders_for_symbols(self, orders: List[CancellationRequest], params={})`
143-
- `cancel_orders(self, ids: List[str], symbol: Str = None, params={})`
144-
- `coin_to_market_id(self, coin: Str)`
145-
- `construct_phantom_agent(self, hash, isTestnet=True)`
146-
- `describe(self)`
147-
- `edit_order(self, id: str, symbol: str, type: str, side: str, amount: Num = None, price: Num = None, params={})`
148-
- `edit_orders_request(self, orders, params={})`
149-
- `edit_orders(self, orders: List[OrderRequest], params={})`
150-
- `extract_type_from_delta(self, data=[])`
151-
- `format_vault_address(self, address: Str = None)`
152-
- `hash_message(self, message)`
153-
- `modify_margin_helper(self, symbol: str, amount, type, params={})`
154-
- `price_to_precision(self, symbol: str, price)`
155-
- `reduce_margin(self, symbol: str, amount: float, params={})`
156-
- `set_leverage(self, leverage: Int, symbol: Str = None, params={})`
157-
- `set_margin_mode(self, marginMode: str, symbol: Str = None, params={})`
158-
- `set_sandbox_mode(self, enabled)`
159-
- `transfer(self, code: str, amount: float, fromAccount: str, toAccount: str, params={})`
160-
- `withdraw(self, code: str, amount: float, address: str, tag=None, params={})`
104+
- `example(self, params={})`
161105

162106
### REST Raw
163107

164-
- `public_post_info(request)`
165-
- `private_post_exchange(request)`
108+
- `example(request)`
166109

167110
### WS Unified
168111

169-
- `describe(self)`
170-
- `create_orders_ws(self, orders: List[OrderRequest], params={})`
171-
- `create_order_ws(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={})`
172-
- `edit_order_ws(self, id: str, symbol: str, type: str, side: str, amount: Num = None, price: Num = None, params={})`
173-
- `watch_order_book(self, symbol: str, limit: Int = None, params={})`
174-
- `un_watch_order_book(self, symbol: str, params={})`
175-
- `watch_ticker(self, symbol: str, params={})`
176-
- `watch_tickers(self, symbols: Strings = None, params={})`
177-
- `un_watch_tickers(self, symbols: Strings = None, params={})`
178-
- `watch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={})`
179-
- `watch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={})`
180-
- `un_watch_trades(self, symbol: str, params={})`
181-
- `watch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={})`
182-
- `un_watch_ohlcv(self, symbol: str, timeframe='1m', params={})`
183-
- `watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={})`
184-
- `wrap_as_post_action(self, request: dict)`
112+
- `example(self)`
185113

186114

187115

examples/async.py

Lines changed: 0 additions & 30 deletions
This file was deleted.

examples/sync.py

Lines changed: 0 additions & 24 deletions
This file was deleted.

examples/websockets.py

Lines changed: 0 additions & 47 deletions
This file was deleted.

gate/__init__.py

Lines changed: 0 additions & 7 deletions
This file was deleted.

gate/ccxt/__init__.py

Lines changed: 0 additions & 102 deletions
This file was deleted.

0 commit comments

Comments
 (0)