code.vegaprotocol.io/vega@v0.79.0/core/integration/features/spots/SpotFunctionalTests/TC-0011-Spot-Ask-Decimals.feature (about) 1 Feature: Simple Spot Order between two parties match successfully 2 3 Scenario: Simple Spot Order matches with counter party 4 5 Background: 6 Given the fees configuration named "fees-config-1": 7 | maker fee | infrastructure fee | 8 | 0.005 | 0.002 | 9 And the simple risk model named "my-simple-risk-model": 10 | long | short | max move up | min move down | probability of trading | 11 | 0.08628781058136630000 | 0.09370922348428490000 | -1 | -1 | 0.2 | 12 And the fees configuration named "my-fees-config": 13 | maker fee | infrastructure fee | 14 | 0.004 | 0.001 | 15 And the spot markets: 16 | id | name | base asset | quote asset | risk model | auction duration | fees | price monitoring | sla params | 17 | BTC/ETH | BTC/ETH | BTC | ETH | my-simple-risk-model | 1 | fees-config-1 | default-none | default-basic | 18 # setup accounts 19 Given the parties deposit on asset's general account the following amount: 20 | party | asset | amount | 21 | party1 | ETH | 1000 | 22 | party2 | BTC | 100 | 23 # place orders and generate trades 24 And the parties place the following orders: 25 | party | market id | side | volume | price | resulting trades | type | tif | reference | 26 | party1 | BTC/ETH | buy | 1 | 100 | 0 | TYPE_LIMIT | TIF_GFA | t1-b-1 | 27 | party2 | BTC/ETH | sell | 1 | 100 | 0 | TYPE_LIMIT | TIF_GTC | t2-s-1 | 28 Then "party2" should have holding account balance of "1" for asset "BTC" 29 Then "party1" should have holding account balance of "100" for asset "ETH" 30 31 Then the orders should have the following states: 32 | party | market id | side | volume | remaining | price | status | 33 | party1 | BTC/ETH | buy | 1 | 1 | 100 | STATUS_ACTIVE | 34 | party2 | BTC/ETH | sell | 1 | 1 | 100 | STATUS_ACTIVE | 35 36 Then the opening auction period ends for market "BTC/ETH" 37 And the trading mode should be "TRADING_MODE_CONTINUOUS" for the market "BTC/ETH" 38 And the mark price should be "100" for the market "BTC/ETH" 39 40 And the following trades should be executed: 41 | buyer | price | size | seller | 42 | party1 | 100 | 1 | party2 | 43 Then "party2" should have holding account balance of "0" for asset "BTC" 44 Then "party1" should have holding account balance of "0" for asset "ETH"