@@ -34,8 +34,9 @@ import sys
3434import asyncio
3535from __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
4041async def main ():
4142 instance = __ExchangeName__Async({})
@@ -59,8 +60,9 @@ asyncio.run(main())
5960import sys
6061from __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
6567async 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
0 commit comments