From d79a4485a6b1a3ae6b647d94b45ee22a515441f2 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Mon, 29 May 2023 23:25:09 +0200 Subject: Many new api calls --- automation/contract.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'automation') diff --git a/automation/contract.js b/automation/contract.js index bf428e9..aebb265 100644 --- a/automation/contract.js +++ b/automation/contract.js @@ -13,7 +13,7 @@ export async function auto(ctx) { let contract = cs[0]; if (!contract.accepted) { console.log(new Date(), `accepting contract ${contract.id}`); - await contracts.accept({id: contract.id}); + await contracts.accept({contract: contract.id}); } const good = contract.terms.deliver[0].tradeSymbol; const deliveryPoint = contract.terms.deliver[0].destinationSymbol; -- cgit v1.2.3