Kill or fill down to but never below a set price

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lewington
    Junior Member
    • Apr 2019
    • 9

    #1

    Kill or fill down to but never below a set price

    Hey gang, just trying to get 100% confirmation on something. If I made the following request:

    Code:
    [
        {
            "jsonrpc": "2.0",
            "method": "SportsAPING/v1.0/placeOrders",
            "params": {
                "marketId":"1.157097705",
                "instructions": [
                    {
                        "orderType": "LIMIT",
                        "selectionId": 16490833,
                        "side": "BACK",
                        "limitOrder": {
                            "size": 9,
                            "price": 1.87,
                            "persistanceType": "LAPSE",
                            "timeInForce": "FILL_OR_KILL",
                            "minFillSize": "1"
                        }
                    }
                ]
    
            },
            "id": 1
        }
    ]
    What I would be doing is:

    1. taking every lay offered for that selection for a price of 1.87 or greater, up to a stake of $9
    2. possibly continuing on to take prices below 1.87 until the weighted average price I have taken drops below 1.87, OR I fullfil my $9 stake.
    3. If both 1 and 2 complete and I still haven't reached $9, either
    • I have reached at least a stake of $1 (minFillSize), and will take whatever I took during 1. and 2.
    • I have not reached a stake of $1 and will take nothing.

    Is that correct? I plan on pushing a fair volume of trade using this request as a template so I'd like to make sure my assumptions about it are sound.
    Last edited by lewington; 05-04-2019, 05:20 AM.
Working...
X