Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bfx-api-node-models

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bfx-api-node-models - npm Package Compare versions

Comparing version 1.1.4 to 1.1.5

12

lib/order.js

@@ -5,2 +5,4 @@ 'use strict'

const _isFinite = require('lodash/isFinite')
const _isString = require('lodash/isString')
const _isEmpty = require('lodash/isEmpty')
const { prepareAmount, preparePrice } = require('bfx-api-node-util')

@@ -77,2 +79,3 @@

* @param {number} data.placedId
* @param {string?} data.affiliateCode
* @param {Object?} apiInterface - saved for a later call to registerListeners()

@@ -91,2 +94,3 @@ */

this.affiliateCode = data.affiliateCode
this._apiInterface = apiInterface

@@ -468,2 +472,8 @@

toNewOrderPacket () {
const meta = { ...(this.meta || {}) }
if (_isString(this.affiliateCode) && !_isEmpty(this.affiliateCode)) {
meta.aff_code = this.affiliateCode // eslint-disable-line
}
const data = {

@@ -476,3 +486,3 @@ gid: this.gid,

flags: this.flags || 0,
meta: this.meta, // optional
meta,

@@ -479,0 +489,0 @@ // optional, populated only for new orders; it is mtsTIF for existing orders

2

package.json
{
"name": "bfx-api-node-models",
"version": "1.1.4",
"version": "1.1.5",
"description": "Object models for usage with the Bitfinex node API",

@@ -5,0 +5,0 @@ "engines": {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc