Binance API error on quantity within range - binance

Getting error, on Binance test API. SPOT TRADING
Symbol: BNBUSDT
Quantity: 0.331
Responce:
{"code":-1013,"msg":"Filter failure: LOT_SIZE"}
On testing on
Quantity: 0.33
ORDER IS EXECUTED
On checking the LOT_SIZE
"filterType": "LOT_SIZE",
"minQty": "0.01000000",
"maxQty": "9000.00000000",
"stepSize": "0.01000000"
Can you please tell what error is causing the ERROR -1013, As the value 0.331 is within range?

The value 0.331 is within minQty and maxQty, but it does not respect the stepSize of 0.01000000. In other words you need to round your value to 2 decimal places.

Related

OFFSET and LIMIT are not working when placed in CosmosDB binding of Azure functions

I have followed the process mentioned in the post to supply values for OFFSET and LIMIT in my sqlquery. Below is how it looks like
SELECT * FROM c where c.recordType = 'employees' OFFSET udf.convertToNumber('0') LIMIT udf.convertToNumber('200')
But facing this error,
"message\":\"Syntax error, incorrect syntax near 'udf'.\"
Any help, please?
Why you don't apply just the OFFSET 0 LIMIT 200, instead of calling a udf to convert the string 0 to number 0 and string 200 to number 200?

the right syntax - minimum value

what is the correct syntax to get the minimum value ? I need the Minimum value between these two :
Duration.Days(Date.EndOfMonth(ay) - [#"Date of Employment (Work)"])
Date.Day(Date.EndOfMonth(ay))
i tried List.Min but it gave error
We cannot convert the value 699 to type List.
i also tried but no such function as "MIN"
MIN(Duration.Days(Date.EndOfMonth(ay) - [#"Date of Employment (Work)"])
,Date.Day(Date.EndOfMonth(ay)))
List.Min will work, if you pass a list as the first argument:
List.Min(
{
Duration.Days(Date.EndOfMonth(ay) - [#"Date of Employment (Work)"]),
Date.Day(Date.EndOfMonth(ay))
}
)
Notice I wrapped your two functions in { }, to make them a list.

How can I properly implement range.find text partial match search?

I am unable to get the Range.find method from office-js to work with a particular column that may or may not have a different word in it. For example I am using the following variations of a column name: "total rent" or "total unit rent".
I am currently configuring the range.find method with the following arguments:
range.find("total rent", {
completeMatch: false,
matchCase: false,
searchDirection: "Forward",
});
The expected result is that whenever this search comes across "total unit rent" it should satisfy a partial match and return the range info. However it keeps crashing for me and I am unsure as to how to go about solving this issue. The docs don't give much way as to how flexible this method call is or if this particular scenario is covered for partial matches.
This is an unclarity in the documentation. To be a partial match, the cell value must begin with the exact string that is passed as the first parameter. So 'total rent charged' is a partial match of 'total rent'; but 'total unit rent' is not a partial match of 'total rent'. I will get the documentation clarified.

Using a nested IF statement to simulate battery but need to compute actual values not comments

Trying to come up with a nested IF statement that works within a specified limit (battery state of charge) taking the necessary inputs over time.
[Sample Data Sheet]
My attempt to formulate for the State of charge operation is given below
= IF(AND(D5+A6-B6>=0.2*$G$1, D5+A6-B6<=0.95*$G$1), D5+A6-B6,0)
= IF(AND(D5+A6-B6<0.2*$G$1), D6= 0.2*$G$1+(D5+A6-B6).
= IF(AND(D5+A6-B6>0.95*$G$1), D6= 0.95*$G$1.
=IF(D5+A6-B6<=0.2*$G$1), 0.2*$G$1+(D5+A6-B6), IF(AND(D5+A6-B6>=0.2*$G$1, D5+A6-B6<=0.95*$G$1), D5+A6-B6,0), IF(D5+A6-B6>=0.95*$G$1), 0.95*$G$1)))
=IF(D5+A6-B6>=0.95*$G$1), 0.95*$G$1, IF(AND(D5+A6-B6>=0.2*$G$1, D5+A6-B6<=0.95*$G$1), D5+A6-B6,0), IF(D5+A6-B6<=0.2*$G$1), 0.2*$G$1+D5+A6-B6)))
I keep getting errors that my formulae are incorrect, please help for both state of charge and spare generation equations.
Thanks
Below is the link to the sample sheet that I have created.
https://drive.google.com/file/d/1kmhkBybMg18Odrow5jElcEt8RcLXqCFH/view?usp=sharing
I'm Assuming the G1 value is 1 or more than 1. Also, I'm also assuming the formula is for E5 cell. Here is the proposed solution.
=IF((D5+A6-B6)<(0.2*$G$1),(0.2*$G$1)+(D5+A6-B6),IF((D5+A6-B6)>(0.95*$G$1), (0.95*$G$1), IF(AND((D5+A6-B6)>=(0.2*$G$1), (D5+A6-B6)<=(0.95*$G$1)), (D5+A6-B6),"not in range")))
Here is the same equation expanded ( to see the logic and sequence ) :
=IF((D5+A6-B6)<(0.2*$G$1) , (0.2*$G$1)+(D5+A6-B6),
IF((D5+A6-B6)>(0.95*$G$1) , (0.95*$G$1),
IF(AND( (D5+A6-B6)>=(0.2*$G$1),(D5+A6-B6)<=(0.95*$G$1)) , (D5+A6-B6),"not in range"
)
)
)
Please have a check.

Spotfire date expression error

In spotfire I have a column property fromDate and toDate which is a Date. I am trying to limit the result of data using expression below. But I keep on encountering this error
Invalid type for function call 'DocumentProperty' on line1, character 19
Limit Expression
[poddate] >= Date(DocumentProperty(${DevInfoYTD}.{Location}.{fromDate})) and
[poddate] <= Date(DocumentProperty(${DevInfoYTD}.{Location}.{toDate}))
If I used the below expression i don't get an error but there is no data shown on the table.
[poddate] >= Date(${DevInfoYTD}.{Location}.{fromDate})
and [poddate] <= Date(${DevInfoYTD}.{Location}.{toDate})
Any ideas on how to fix it?
You don't need a three part identifier. I'm unsure of what that even is supposed to be, but you only need to list the property control.
[poddate] >= Date("${YourPropertyControlName}")
AND
and [poddate] <= Date("${YourOtherPropertyControlName}")

Resources