Files
bybit-api/test/response.util.ts
2021-06-24 00:41:21 +01:00

27 lines
541 B
TypeScript

export function successResponseList() {
return {
"ext_code": "",
"ext_info": "",
"result": expect.any(Array),
"ret_code": 0,
"ret_msg": "OK",
"time_now": expect.any(String),
};
};
export function successResponseObject() {
return {
"ext_code": "",
"ext_info": "",
"result": expect.any(Object),
"ret_code": 0,
"ret_msg": "OK",
"time_now": expect.any(String),
};
};
export function notAuthenticatedError() {
return new Error('Private endpoints require api and private keys set');
};