make compound mode non demo

master
TZGyn 3 months ago
parent 13b3ba6619
commit 0e9ba90c88

@ -116,7 +116,11 @@ export const POST = async ({ locals, request }) => {
const client = new RestClientV5({ const client = new RestClientV5({
key: key, key: key,
secret: secret, secret: secret,
demoTrading: true, demoTrading: ['Compound', 'Close Position Compound'].includes(
form.data.type,
)
? false
: true,
}) })
if (hedge && hedge === 'true') { if (hedge && hedge === 'true') {

Loading…
Cancel
Save