Place Order FillorKill

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • FWR
    Junior Member
    • Nov 2016
    • 14

    #1

    Place Order FillorKill

    Would appreciate some advice re PlaceOrder
    I wish to place and order with the Command

    FILLORKILL 20

    ie FillorKill make offer for 20 seconds

    i have the following json call and can get a bet on but not real sure if i am doing it correctly

    GR = "{""jsonrpc"": ""2.0"", ""method"": ""SportsAPING/v1.0/placeOrders"",""params"": {""marketId"": ""1.109850906"",""instructions"": [{ ""selectionId"": ""237486"", ""handicap"": ""0"",""side"": ""BACK"",""orderType"": ""LIMIT"",""limitOrder"": {""size"": ""5"",""price"": ""3"",""persistenceType"": ""LAPSE""}}]},""id"": 1}"

    Appreciate any help.. Regards FWR
  • jabe
    Senior Member
    • Dec 2014
    • 705

    #2
    Who wrote the FILLORKILL routine? Does the bet get placed? Can you cancel it 20 seconds later? Remember there'll be a delay to take into account of it's in play.

    Comment

    • FWR
      Junior Member
      • Nov 2016
      • 14

      #3
      I found this somewhere on the forums
      GR = "{""jsonrpc"": ""2.0"", ""method"": ""SportsAPING/v1.0/placeOrders"", ""params"": {""marketId"":""1.109850906"",""marketType"":""PLA CE"",""instructions"":[{""selectionId"":""237486"",""handicap"":""0"",""s ide"":""BACK"",""orderType"":""LIMIT"",""limitOrde r"":{""size"":""5"",""price"":""5"",""persistenceT ype"":""LAPSE"",""timeInForce"":""FILL_OR_KILL""," "minFillSize"":""5""}}]}, ""id"": 1}"

      before converting to using the api i was able to use

      Back FILLORKILL 2 to back a runner and filloekill after 2 seconds

      i did send a bet using fillorkill and it was accepted

      What i am after is

      Is fillorkill valid in the api and is my code correct

      Regards FWR

      Comment

      • gr33d
        Junior Member
        • May 2012
        • 12

        #4
        Fill or Kill is valid in the API as per http://docs.developer.betfair.com/do...FillorKillbets

        I think you're getting a bit confused how "native" fill or kill works - when you send a FOK order to the exchange it will either fill it or kill it (as it says on the tin).

        The 20 seconds cancel thing is something you need to implement yourself i.e. you're creating your own synthetic fill or kill or order by sending a normal order (without the time in force set to fill or kill) and then if it's not filled in 20 seconds you're cancelling it yourself. However, this kind of synthetic order is more like a "good till date" time in force as you are not guaranteed to fill entire the order if you implement it synthetically like this (you can get filled less than your target qty).

        Comment

        • FWR
          Junior Member
          • Nov 2016
          • 14

          #5
          Thanks for Advice

          gr33d .. Thankyou for your comments

          I now realize where i copied the code from..thanks

          I understand your comments re fill kill appreciate your advice


          It's a pity there are not simple examples in code for each calling function, it would certainly help a lot...!!!!

          Regards FWR

          Comment

          • Chris79
            Junior Member
            • Jul 2022
            • 1

            #6
            Originally posted by gr33d View Post
            Fill or Kill is valid in the API as per http://docs.developer.betfair.com/do...FillorKillbets

            I think you're getting a bit confused how "native" fill or kill works - when you send a FOK order to the exchange it will either fill it or kill it (as it says on the tin).

            The 20 seconds cancel thing is something you need to implement yourself i.e. you're creating your own synthetic fill or kill or order by sending a normal order (without the time in force set to fill or kill) and then if it's not filled in 20 seconds you're cancelling it yourself. However, this kind of synthetic order is more like a "good till date" time in force as you are not guaranteed to fill entire the order if you implement it synthetically like this (you can get filled less than your target qty).
            I have learned many things from your comment. It is very useful for me. Thanks
            fnf

            Comment

            • Mariah
              Junior Member
              • Sep 2022
              • 1

              #7
              Originally posted by gr33d View Post
              Fill or Kill is valid in the API as per http://docs.developer.betfair.com/do...Killbetswordlewordle

              I think you're getting a bit confused how "native" fill or kill works - when you send a FOK order to the exchange it will either fill it or kill it (as it says on the tin).

              The 20 seconds cancel thing is something you need to implement yourself i.e. you're creating your own synthetic fill or kill or order by sending a normal order (without the time in force set to fill or kill) and then if it's not filled in 20 seconds you're cancelling it yourself. However, this kind of synthetic order is more like a "good till date" time in force as you are not guaranteed to fill entire the order if you implement it synthetically like this (you can get filled less than your target qty).
              The right advice and very useful for me. Thank you so much.

              Comment

              • sharase
                Junior Member
                • Feb 2023
                • 1

                #8
                Originally posted by gr33d View Post
                Fill or Kill is valid in the API as per http://docs.developer.betfair.com/do...FillorKillbets

                I think you're getting a bit confused how "native" fill or kill works - when you send a FOK order to the exchange it will either fill it or kill it (as it says on the tin)

                The 20 seconds cancel thing is something you need to implement yourself i.e. you're creating your own synthetic fill or kill or order by sending a normal order (without the time in force set to fill or kill) and then if it's not filled in 20 seconds you're cancelling it yourself. However, this kind of synthetic order is more like a "good till date" time in force as you are not guaranteed to fill entire the order if you implement it synthetically like this (you can get filled less than your target qty).
                I couldn't think until I read your comment, very helpful advice. Thank you very much!
                subway surfers

                Comment

                Working...
                X