orionx-sdk
Advanced tools
Comparing version 1.3.11 to 1.3.12
{ | ||
"name": "orionx-sdk", | ||
"version": "1.3.11", | ||
"version": "1.3.12", | ||
"description": "Help developers with Orionx integrations", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
@@ -14,3 +14,3 @@ import gql from 'graphql-tag' | ||
mutation cancelOrder($orderId: ID) { | ||
createPayment(orderId: $orderId) { | ||
cancelOrder(orderId: $orderId) { | ||
_id | ||
@@ -17,0 +17,0 @@ type |
@@ -9,3 +9,3 @@ import gql from 'graphql-tag' | ||
export default async function({ marketCode, amount, limitPrice, sell }) { | ||
export default async function({ marketCode, amount, limitPrice, sell, clientId }) { | ||
if (!marketCode) throwParamsError('marketCode') | ||
@@ -22,2 +22,3 @@ if (!amount) throwParamsError('amount') | ||
$sell: Boolean | ||
$clientId: String | ||
) { | ||
@@ -29,2 +30,3 @@ placeLimitOrder( | ||
sell: $sell | ||
clientId: $clientId | ||
) { | ||
@@ -38,2 +40,3 @@ _id | ||
} | ||
clientId | ||
} | ||
@@ -45,3 +48,3 @@ } | ||
query, | ||
variables: { marketCode, amount, limitPrice, sell } | ||
variables: { marketCode, amount, limitPrice, sell, clientId } | ||
}) | ||
@@ -48,0 +51,0 @@ |
@@ -9,3 +9,3 @@ import gql from 'graphql-tag' | ||
export default async function({marketCode, amount, sell}) { | ||
export default async function({marketCode, amount, sell, clientId}) { | ||
if (!marketCode) throwParamsError('marketCode') | ||
@@ -16,4 +16,4 @@ if (!amount) throwParamsError('amount') | ||
const query = gql` | ||
mutation placeMarketOrder($marketCode: ID, $amount: BigInt, $sell: Boolean) { | ||
placeMarketOrder(marketCode: $marketCode, amount: $amount, sell: $sell) { | ||
mutation placeMarketOrder($marketCode: ID, $amount: BigInt, $sell: Boolean, clientId: String) { | ||
placeMarketOrder(marketCode: $marketCode, amount: $amount, sell: $sell, clientId: $clientId) { | ||
_id | ||
@@ -32,3 +32,3 @@ type | ||
query, | ||
variables: {marketCode, amount, sell} | ||
variables: {marketCode, amount, sell, clientId} | ||
}) | ||
@@ -35,0 +35,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
74783
1727