diff --git a/idl/openbook_v2.json b/idl/openbook_v2.json index a756c6021..25c0d8b63 100644 --- a/idl/openbook_v2.json +++ b/idl/openbook_v2.json @@ -620,6 +620,120 @@ "option": "u128" } }, + { + "name": "placeOrders", + "docs": [ + "Place multiple orders" + ], + "accounts": [ + { + "name": "signer", + "isMut": false, + "isSigner": true + }, + { + "name": "openOrdersAccount", + "isMut": true, + "isSigner": false + }, + { + "name": "openOrdersAdmin", + "isMut": false, + "isSigner": true, + "isOptional": true + }, + { + "name": "userQuoteAccount", + "isMut": true, + "isSigner": false + }, + { + "name": "userBaseAccount", + "isMut": true, + "isSigner": false + }, + { + "name": "market", + "isMut": true, + "isSigner": false + }, + { + "name": "bids", + "isMut": true, + "isSigner": false + }, + { + "name": "asks", + "isMut": true, + "isSigner": false + }, + { + "name": "eventHeap", + "isMut": true, + "isSigner": false + }, + { + "name": "marketQuoteVault", + "isMut": true, + "isSigner": false + }, + { + "name": "marketBaseVault", + "isMut": true, + "isSigner": false + }, + { + "name": "oracleA", + "isMut": false, + "isSigner": false, + "isOptional": true + }, + { + "name": "oracleB", + "isMut": false, + "isSigner": false, + "isOptional": true + }, + { + "name": "tokenProgram", + "isMut": false, + "isSigner": false + } + ], + "args": [ + { + "name": "ordersType", + "type": { + "defined": "PlaceOrderType" + } + }, + { + "name": "bids", + "type": { + "vec": { + "defined": "PlaceMultipleOrdersArgs" + } + } + }, + { + "name": "asks", + "type": { + "vec": { + "defined": "PlaceMultipleOrdersArgs" + } + } + }, + { + "name": "limit", + "type": "u8" + } + ], + "returns": { + "vec": { + "option": "u128" + } + } + }, { "name": "cancelAllAndPlaceOrders", "docs": [ diff --git a/ts/client/src/openbook_v2.ts b/ts/client/src/openbook_v2.ts index c8b11ddf5..91e38a549 100644 --- a/ts/client/src/openbook_v2.ts +++ b/ts/client/src/openbook_v2.ts @@ -616,6 +616,118 @@ export interface OpenbookV2 { option: 'u128'; }; }, + { + name: 'placeOrders'; + docs: ['Place multiple orders']; + accounts: [ + { + name: 'signer'; + isMut: false; + isSigner: true; + }, + { + name: 'openOrdersAccount'; + isMut: true; + isSigner: false; + }, + { + name: 'openOrdersAdmin'; + isMut: false; + isSigner: true; + isOptional: true; + }, + { + name: 'userQuoteAccount'; + isMut: true; + isSigner: false; + }, + { + name: 'userBaseAccount'; + isMut: true; + isSigner: false; + }, + { + name: 'market'; + isMut: true; + isSigner: false; + }, + { + name: 'bids'; + isMut: true; + isSigner: false; + }, + { + name: 'asks'; + isMut: true; + isSigner: false; + }, + { + name: 'eventHeap'; + isMut: true; + isSigner: false; + }, + { + name: 'marketQuoteVault'; + isMut: true; + isSigner: false; + }, + { + name: 'marketBaseVault'; + isMut: true; + isSigner: false; + }, + { + name: 'oracleA'; + isMut: false; + isSigner: false; + isOptional: true; + }, + { + name: 'oracleB'; + isMut: false; + isSigner: false; + isOptional: true; + }, + { + name: 'tokenProgram'; + isMut: false; + isSigner: false; + }, + ]; + args: [ + { + name: 'ordersType'; + type: { + defined: 'PlaceOrderType'; + }; + }, + { + name: 'bids'; + type: { + vec: { + defined: 'PlaceMultipleOrdersArgs'; + }; + }; + }, + { + name: 'asks'; + type: { + vec: { + defined: 'PlaceMultipleOrdersArgs'; + }; + }; + }, + { + name: 'limit'; + type: 'u8'; + }, + ]; + returns: { + vec: { + option: 'u128'; + }; + }; + }, { name: 'cancelAllAndPlaceOrders'; docs: ['Cancel orders and place multiple orders.']; @@ -4189,6 +4301,118 @@ export const IDL: OpenbookV2 = { option: 'u128', }, }, + { + name: 'placeOrders', + docs: ['Place multiple orders'], + accounts: [ + { + name: 'signer', + isMut: false, + isSigner: true, + }, + { + name: 'openOrdersAccount', + isMut: true, + isSigner: false, + }, + { + name: 'openOrdersAdmin', + isMut: false, + isSigner: true, + isOptional: true, + }, + { + name: 'userQuoteAccount', + isMut: true, + isSigner: false, + }, + { + name: 'userBaseAccount', + isMut: true, + isSigner: false, + }, + { + name: 'market', + isMut: true, + isSigner: false, + }, + { + name: 'bids', + isMut: true, + isSigner: false, + }, + { + name: 'asks', + isMut: true, + isSigner: false, + }, + { + name: 'eventHeap', + isMut: true, + isSigner: false, + }, + { + name: 'marketQuoteVault', + isMut: true, + isSigner: false, + }, + { + name: 'marketBaseVault', + isMut: true, + isSigner: false, + }, + { + name: 'oracleA', + isMut: false, + isSigner: false, + isOptional: true, + }, + { + name: 'oracleB', + isMut: false, + isSigner: false, + isOptional: true, + }, + { + name: 'tokenProgram', + isMut: false, + isSigner: false, + }, + ], + args: [ + { + name: 'ordersType', + type: { + defined: 'PlaceOrderType', + }, + }, + { + name: 'bids', + type: { + vec: { + defined: 'PlaceMultipleOrdersArgs', + }, + }, + }, + { + name: 'asks', + type: { + vec: { + defined: 'PlaceMultipleOrdersArgs', + }, + }, + }, + { + name: 'limit', + type: 'u8', + }, + ], + returns: { + vec: { + option: 'u128', + }, + }, + }, { name: 'cancelAllAndPlaceOrders', docs: ['Cancel orders and place multiple orders.'],