sagepay / authenticate and authorise / 115% calculation rules - authentication

I've just had an issue where an authenticated payment failed to authorise with the following error:
StatusDetail=4044 : This Authorise would exceed maximum allowed value.
The original amount was 119.46. If you multiply that by 1.15 to add on 15% you get 137.379 which I would expect to round up to 137.38. I can only authorise the payment if I authorise the rounded down value of 137.37.
Could someone please confirm the calculation method used when determining what is available to authorise?

I suspect that as the Authorise is up to 15% over the transaction value, it must not exceed 15% even by a fraction. So round under rather than over.
119.46 x 0.15 = 17.919 + 119.46 = 137.37.9 The Amount to Authorise will be 137.37 if you are being presented with 4044 for the amount of 137.88.

Related

solana spl-token transfer fee "Error: Program(IncorrectProgramId)"

I want to create my own Solana token that takes %2 fee to all transactions and total supply should be 100k token. That's why i used spl-token cli for this spl-token create-token --transfer-fee 50 1000, however after executing this command i get an error like
Error: Program(IncorrectProgramId)
How can i fix this error or how can i create my own token with transaction fee.
When creating a new token with transfer fees, you must specify the program id as the token-2022 program id of TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb, so instead, do:
spl-token --program-id TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb create-token --transfer-fee 50 1000

how to get the average response time for a request using Jmeter testing tool

I am trying Jmeter for load and performance test, so I created the thread group and below is the output of aggregate report.
The first column Avg request t/s, i have calculated using the formula
((Average/Total Requests)/1000)
but it does not seems good, as I am loggin request time in my code, almost every request is taking minimum 2-4 seconds.
I tried with MEdian/1000 but again, i am in doubt.
what is the corerct way to get the average time for a request?
Avg request t/s
Total Requests
Average
MEdian
Min
Max
Error %
ThroughPut request per time unit
Recieved KB
Sent KB
0.07454
100
7454
6663
2464
19313
0
3/sec
2.062251152
1.074506499
1.11322
100
111322
107240
4400
222042
0
26.3/min
0.1408915377
0.1271878015
1.19035
100
119035
117718
0.03
26.3/min
0.1309013211
0.1279624502
1.21287
100
121287
119198
0
0.4136384882
0.135725129
0.1211831508
1.11943
100
111943
111582
5257
220004
0
0.4359482965
0.1507086884
0.1264420352
1.14289
100
114289
114215
4543
223947
0
0.4369846313
0.1497867242
0.1288763268
0.23614
150
35421
26731
4759
114162
0
0.9494271789
0.3600282257
0.1842358496
Don't you have the ThroughPut request per time unit column already? What else do you need to "calculate"?
As per Aggregate Report documentation
Throughput - the Throughput is measured in requests per second/minute/hour. The time unit is chosen so that the displayed rate is at least 1.0. When the throughput is saved to a CSV file, it is expressed in requests/second, i.e. 30.0 requests/minute is saved as 0.5.
So if you click Save Table Data button:
you will get the average transactions per second in the CSV file
It is also possible to generate the CSV file with the calculated aggregate values using JMeter Plugins Command Line Tool as
JMeterPluginsCMD.bat --generate-csv aggregate-report.csv --input-jtl /path/to/your/results.jtl --plugin-type AggregateReport

binance.exceptions.BinanceAPIException: APIError(code=-1013): Filter failure: LOT_SIZE || binance api || Python

I have a problem with Binance API when placing a market order using the order_market_buy method.
def order_market_buy(symbol, quantity):
client.order_market_buy(symbol=symbol, quantity=quantity, recvWindow=50000)
order_market_buy('BNBBTC', 0.0001)
When you run this code, the following error occurs.
BTC on the wallet account is enough to carry out a transaction.
What could be the cause of the error?
Using the BNBBTC pair means you want to buy BNB using BTC. That error suggests that you don't have enough BTC in your Binance account. Also, the minimum transaction size is $10 so with the current price of BNB you might have to buy closer to .017 of it.

Getting 66: insufficient priority. when trying to push transaction

Basically I getting 66: insufficient priority. Code:-26 when I trying to push transaction
I already tried to increase fees manually.
AMOUNT_TOSEND is in satoshis
I take total_received value from https://api.blockcypher.com/v1/btc/test3/addrs/ + address + '/full?limit=50'
and multiply it by 100000000
I take fee from here: https://test-insight.bitpay.com/api/utils/estimatefee
and multiply it by 100000000
Here is how I calculate outputs:
tx.addOutput(ADDRESS_BENEFICIARY, Number(AMOUNT_TOSEND))
tx.addOutput(ADDRESS_BENEFICIARY, Number(balance) - (Number(AMOUNT_TOSEND) + Number(fee)))
Pasting on https://test-insight.bitpay.com/tx/send and getting 66: insufficient priority. Code:-26
Was able to fix after I started to use transaction amount instead of the total balance, also multiply fee by transaction size in bytes, but not sure I exactly need it

IBM Watson Concept Insights get related concepts (corpus) using cURL timing out

I am getting this error -> {"code": 500, "message": "Forwarding error"} every time I try to get related concepts from my private account and corpus. The error seems to be a timeout error since it always dies at 2:30.
I've replaced the sample provided by IBM to point to my account and corpus. Does anybody know why this is occurring?
curl -u "{username}":"{password}" "https://gateway.watsonplatform.net/concept-insights/api/v2/corpora/accountid/corpus/related_concepts?limit=3&level=0"
cURL result
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 44 0 44 0 0 0 0 --:--:-- 0:02:30 --:--:-- 10
Corpus status
{"id":"/corpora/accountid/corpus","documents":10,"last_updated":"0001-01-01T00:00:00Z","build_status":{"ready":10,"error":0,"processing":0}}
NOTE: I do not get this error if I use the public example provided by IBM on the API. I have also masked my account id, corpus, username, and password for this public posting.
Unfortunately, since the error is corpus specific (since you mentioned you can the API to work on the public corpus), we would need to know more information about your corpus (like account id and corpus id) in order to help you out.
One way to allow you to provide this information privately is to open a ticket with the Bluemix system (there are 2 options described here)
https://developer.ibm.com/bluemix/support/#support
If you list the "Watson Concept Insights" service in the ticket, we will get your information.