node_modules/binance/lib/usdm-client.js
/**
     * Validate syntax meets requirements set by binance. Log warning if not.
     */
Validate syntax meets requirements set by binance. Log warning if not.
Validate syntax meets requirements set by binance . Log warning if not .
validateOrderId(params, orderIdProperty) {
        const apiCategory = this.clientId;
        if (!params[orderIdProperty]) {
            params[orderIdProperty] = requestUtils_1.generateNewOrderId(apiCategory);
            return;
        }
        const expectedOrderIdPrefix = `x-${requestUtils_1.getOrderIdPrefix(apiCategory)}`;
        if (!params[orderIdProperty].startsWith(expectedOrderIdPrefix)) {
            requestUtils_1.logInvalidOrderId(orderIdProperty, expectedOrderIdPrefix, params);
        }
    }
validateOrderId ( params , orderIdProperty ) { const apiCategory = this . clientId ; if ( ! params [ orderIdProperty ] ) { params [ orderIdProperty ] = requestUtils_1 . generateNewOrderId ( apiCategory ) ; return ; } const expectedOrderIdPrefix = ` ${ requestUtils_1 . getOrderIdPrefix ( apiCategory ) } ` ; if ( ! params [ orderIdProperty ] . startsWith ( expectedOrderIdPrefix ) ) { requestUtils_1 . logInvalidOrderId ( orderIdProperty , expectedOrderIdPrefix , params ) ; } }
Validate syntax meets requirements set by binance.
Validate syntax meets requirements set by binance .