MCPcopy Create free account
hub / github.com/ccxt/ccxt / batch_orders_request

Method batch_orders_request

python/ccxt/async_support/pacifica.py:1371–1413  ·  view source on GitHub ↗
(self, actions: List[Any])

Source from the content-addressed store, hash-verified

1369 return [request, operationType]
1370
1371 def batch_orders_request(self, actions: List[Any]):
1372 #
1373 # [
1374 # {
1375 # "type":"Create",
1376 # "data":{
1377 # "account":"42trU9A5...",
1378 # "signature":"5UpRZ14Q...",
1379 # "timestamp":1749190500355,
1380 # "expiry_window":5000,
1381 # "symbol":"BTC",
1382 # "price":"100000",
1383 # "reduce_only":false,
1384 # "amount":"0.1",
1385 # "side":"bid",
1386 # "tif":"GTC",
1387 # "client_order_id":"57a5efb1-bb96-49a5-8bfd-f25d5f22bc7e"
1388 # }
1389 # },
1390 # {
1391 # "type":"Cancel",
1392 # "data":{
1393 # "account":"42trU9A5...",
1394 # "signature":"4NDFHyTG...",
1395 # "timestamp":1749190500355,
1396 # "expiry_window":5000,
1397 # "symbol":"BTC",
1398 # "order_id":42069
1399 # }
1400 # }
1401 # ]
1402 #
1403 # Create(Only Limit or Market, never stop order or tpsl order)
1404 # Cancel(Only common(limit) orders)
1405 #
1406 lenActions = len(actions)
1407 maxLen = self.handle_option('batchOrdersRequest', 'batchOrdersMax')
1408 if maxLen is not None:
1409 if lenActions > maxLen:
1410 raise ExchangeError(self.id + ' batchOrdersRequest() too many orders to create/cancel. Limit is ' + maxLen)
1411 return {
1412 'actions': actions,
1413 }
1414
1415 def create_orders_request(self, orders: List[OrderRequest], params={}):
1416 actions = []

Callers 2

create_orders_requestMethod · 0.95
cancel_orders_requestMethod · 0.95

Calls 2

ExchangeErrorClass · 0.90
handle_optionMethod · 0.80

Tested by

no test coverage detected