Files
bybit-api/test/copy-trading/public.read.test.ts
Jerko J 67b39de7e1 Fixed deprecated ednpoints.
## Summary
<!-- Add a brief description of the pr: -->

## Additional Information
<!-- Any additional information like breaking changes, dependencies added, screenshots, comparisons between new and old behavior, etc. -->
2024-06-27 16:59:24 +02:00

30 lines
702 B
TypeScript

import { CopyTradingClient } from '../../src';
import { getTestProxy } from '../proxy.util';
import { successResponseObject } from '../response.util';
describe('Public Copy Trading REST API Endpoints', () => {
const API_KEY = undefined;
const API_SECRET = undefined;
const api = new CopyTradingClient(
{
key: API_KEY,
secret: API_SECRET,
testnet: false,
},
getTestProxy(),
);
it('getSymbols()', async () => {
expect(await api.getSymbols()).toMatchObject({
result: {
list: expect.any(Array),
},
});
});
it('getServerTime()', async () => {
expect(await api.getServerTime()).toMatchObject(successResponseObject());
});
});