CTO of BitMEX.com, NodeJS & Javascript Enthusiast
BitMEX - The Bitcoin Mercantile Exchange
var grossValue = backingOrder.getGrossValue();
var initialMarginBuy = backingOrder.getMarginRequirement(this.props.orderInputQuantity);
var initialMarginSell = backingOrder.getMarginRequirement(-this.props.orderInputQuantity);
var commissionDef = backingOrder.getUserCommission()[this.props.selectedInstrument.symbol];
...
var fileReader = new FileReaderSync();
var fileData = fileReader.readAsBinaryString(oEvent.data.file);
var encrypted = {};
encrypted.fileData = CryptoJS.Rabbit.encrypt(fileData, oEvent.data.passphrase).toString();
encrypted.fileName = CryptoJS.Rabbit.encrypt(oEvent.data.file.name, oEvent.data.passphrase).toString();
postMessage(encrypted);
...
UserSchema.plugin(filter, {
readFilter: {
"owner" : ['name', 'address', 'fb.id', 'fb.name', 'readOnlyField'],
"public": ['name', 'fb.name']
},
writeFilter: {
"owner" : ['name', 'address', 'fb.id', 'writeOnlyField']
},
defaultFilterRole: 'public',
sanitize: true // Escape HTML in strings
});
UserSchema.plugin(denormalize, {defaults: ['address', 'transactions', 'tickets'], exclude: 'bankaccount'});
$("#viewport").scrollingShadows(".longTextBox");