refactor tests for new constructor pattern
This commit is contained in:
@@ -5,11 +5,14 @@ import {
|
||||
} from '../response.util';
|
||||
|
||||
describe('Public Unified Margin REST API Endpoints', () => {
|
||||
const useLivenet = true;
|
||||
const API_KEY = undefined;
|
||||
const API_SECRET = undefined;
|
||||
|
||||
const api = new UnifiedMarginClient(API_KEY, API_SECRET, useLivenet);
|
||||
const api = new UnifiedMarginClient({
|
||||
key: API_KEY,
|
||||
secret: API_SECRET,
|
||||
testnet: false,
|
||||
});
|
||||
|
||||
const symbol = 'BTCUSDT';
|
||||
const category = 'linear';
|
||||
|
||||
Reference in New Issue
Block a user