Serenity BDD Report
Home > Cash-bo-api > Create Order SELL > TC 84: create order with stock code of NYS, walletcurrency is HKD
Report generated 21-05-2024 03:53

Create Order SELL

  Cash-Bo-Api (capability)   Under 1 Second (Duration)   Ordercreation   Tc 84   Create Order SELL (feature)   Cashupfront   Ordercreationsell   Order   Ordercreationsellsuccess

TC_84: Create order with stock code of NYS, walletcurrency is HKD
Steps Outcome
Before
SUCCESS
Given I want to verify if the customer below can create a new order:
{
"cif": "TT10000002",
"orderType": "STOPLIMIT",
"fees": 5.0,
"tradingBoard": "",
"executedPrice": 10.0,
"avgPrice": 10.0,
"orderStatus": "NEW",
"ltpPrice": 10.0,
"orderChannel": "",
"referenceId": "",
"account": "CA-00005149",
"estimatedNetAmt": 10.0,
"earmarkflag": true,
"expiryDate": "",
"tradeTerm": "",
"orderDatetime": 1709022351142,
"stockName": "",
"timeInForce": "DAY",
"orderQty": 10.0,
"id": 1,
"origclordId": "",
"limitPrice": 10.0,
"accountType": "Cashupfront",
"orderSide": "SELL",
"stockCode": "F",
"marketState": "",
"exchangeId": "NYS",
"transactionType": "",
"orderLot": "ODD_LOT",
"stopPrice": 10.0,
"marketPhase": "",
"clordId": "",
"exchangeName": "",
"currencyCode": "USD",
"rewardCode": "",
"walletCurrency": "HKD",
"rtPtsFlag": true,
"multiplier": "1.0"
}
SUCCESS 001ms
SUCCESS 060ms
FAILURE 023ms
Then I want to display the current stock Trading Limit
SKIPPED
When cashBoApi calls api order creation
SKIPPED
Then cashBoApi should get response status 200
SKIPPED
Then I want to wait for 5 seconds
SKIPPED 001ms
When cashBoApi calls api to get Stock Trading Limit before created order
SKIPPED
Then cashBoApi should get response status 200
SKIPPED
Then I want to display the new stock Trading Limit before created order
SKIPPED 001ms
Then I will check stock value
SKIPPED
FAILURE 0.1s
Serenity BDD version 4.0.48