add bybit test data
parent
21eb346061
commit
f760f1ef8d
@ -0,0 +1,17 @@
|
||||
import { json } from '@sveltejs/kit'
|
||||
import { RestClientV5 } from 'bybit-api'
|
||||
|
||||
export const POST = async () => {
|
||||
const client = new RestClientV5({
|
||||
key: 'wrc1w54Zp5JAfXLxY2',
|
||||
secret: 'tY7oYPhwSE1gabFS4PmxtmbDOhkYWvPh0khf',
|
||||
demoTrading: true,
|
||||
})
|
||||
|
||||
const orders = await client.getActiveOrders({
|
||||
category: 'linear',
|
||||
})
|
||||
return json({
|
||||
orders,
|
||||
})
|
||||
}
|
||||
Loading…
Reference in New Issue