Hello,
I have a question about how to place an order. This is the first time so I try to ask so I am more sure of what I am doing.
I am trying to place a back order for moneyline.
1. As moneyline doesn't have handicap, I have put handicap to null. I wonder if that is correct?
2. I have also red somewhere, but can't find this in the documentation about "Fill and Kill" and "Fill or Kill".
Initially, I would like to place a "Fill or Kill" order and wonder how to do this in the below data string?
3. Does this place order string look correct?
4. Is there a minimum size that betfair uses for orders?
5. What does "LAPSE" mean for persistencetype?
Thank you!
I have a question about how to place an order. This is the first time so I try to ask so I am more sure of what I am doing.
I am trying to place a back order for moneyline.
1. As moneyline doesn't have handicap, I have put handicap to null. I wonder if that is correct?
2. I have also red somewhere, but can't find this in the documentation about "Fill and Kill" and "Fill or Kill".
Initially, I would like to place a "Fill or Kill" order and wonder how to do this in the below data string?
3. Does this place order string look correct?
4. Is there a minimum size that betfair uses for orders?
5. What does "LAPSE" mean for persistencetype?
Thank you!
Code:
String marketid = "1.12345";
String selectionid = "12345";
String ordertype = "LIMIT";
String size = "2";
String price = "1.85";
String handicap = "null";
String persistencetype = "LAPSE";
data = "{\"jsonrpc\": \"2.0\", \"method\": \"SportsAPING/v1.0/placeOrders\"," +
"{\"marketId\":\"" + marketid + "\"," +
"\"instructions\":[{\"selectionId\":" + selectionid + ",\"handicap\":\"" + handicap + "\",\"side\":\"BACK\",\"orderType\":\"" + ordertype + "\"," +
"\"limitOrder\": {\"size\":\"" + size + "\",\"price\":\"" + price + "\"," +
"\"persistenceType\":\"" + persistencetype + "\"}}}}";



Comment