Fill or Kill with COM

Please post any questions regarding the program here.

Moderator: 2020vision

Fill or Kill with COM

Postby Tradyann » Mon Feb 04, 2013 2:27 pm

Hello,

I have "enable fill or kill" and "after 0.0 seconds".
Cancelling is ok when done directly with betting assistant.


but when i want to place a bet with COM interface (asp.net form), the bet aren't cancelled. Here is diagnostic :



    04022013 11:39:17:281: Placing bet via COM
    Object type:PlaceBets,Members: id:1;bidType:B;odds:1.21;newStake:;stake:4.00;betPersist:;closeTrade:False;silent:True;betResult:0;marketId:108145445;selecIds:46949;marketType:;subMarket:0;verifyBets:False;selection:BATE Borisov;tradingMode:False;showPlaceMarketSelected:False;currentMarketId:;currentSelectionId:;placeMarketId:;currentMarketType:;multiSelec:;multiSelecName:;multiSubMarket:;multiBetType:;multiOdds:;multiStake:;multiTickOffset:;multiStopLossOdds:;multiTickOffsetDelay:;multiStopLoss:;multiFillKill:;multiTickOffsetOriginRef:;multiKeepBetType:;multiErrorMsg:;multiKeys:;04022013 11:39:25:375: Bet placement via COM complete. Ref:24955743122
    04022013 11:40:06:156: waiting for current refresh to finish
    04022013 11:40:06:156: request next refresh
    04022013 11:40:06:180: next refresh complete
User avatar
Tradyann
 
Posts: 139
Joined: Thu Dec 15, 2011 7:13 pm

Postby Tradyann » Mon Feb 04, 2013 4:22 pm

Another test...

In BA_diagnostic :

Object type:PlaceBets,Members: id:0;bidType:B;odds:1.02;newStake:;stake:0.50;betPersist:;closeTrade:False;silent:True;betResult:0;marketId:108145602;selecIds:1222344;marketType:;subMarket:0;verifyBets:False;selection:Under 3.5 Goals;tradingMode:False;showPlaceMarketSelected:False;currentMarketId:;currentSelectionId:;placeMarketId:;currentMarketType:;multiSelec:;multiSelecName:;multiSubMarket:;multiBetType:;multiOdds:;multiStake:;multiTickOffset:;multiStopLossOdds:;multiTickOffsetDelay:;multiStopLoss:;multiFillKill:;multiTickOffsetOriginRef:;multiKeepBetType:;multiErrorMsg:;multiKeys:;04022013 15:14:58:071: waiting for current refresh to finish
04022013 15:14:58:071: Bet placement via COM complete. Ref:24959019891
04022013 15:14:58:083: request next refresh
04022013 15:14:58:127: next refresh complete



In LogError :


04022013 15:14:33:509: System.InvalidCastException: Conversion from type 'String()' to type 'String' is not valid.
at Microsoft.VisualBasic.CompilerServices.Conversions.ToString(Object Value)
at Betting_Assistant.Module1.logDiagnostic(String msg, Object obj) in C:\Betting Assistant Beta 1_1_0_66x68\Betfair Trading API Beta\Module1.vb:line 254
User avatar
Tradyann
 
Posts: 139
Joined: Thu Dec 15, 2011 7:13 pm

Postby GaryRussell » Tue Feb 05, 2013 9:39 am

Fill or kill, tick offset etc. are not supported by the COM interface. It is planned for later versions.
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby Tradyann » Tue Feb 05, 2013 10:40 am

Hello gary,

Planned in few days ? weeks ? months ?

It's just to know if I need to find another method temporarily for cancelling unmatched bets.
User avatar
Tradyann
 
Posts: 139
Joined: Thu Dec 15, 2011 7:13 pm

Postby GaryRussell » Tue Feb 05, 2013 11:59 am

Since it was simple to do I've implemented it now in the latest Beta build. Please uninstall and re-install from the link below.

http://www.gruss-software.co.uk/Betting ... _Beta2.msi

eg.
Code: Select all
placeBet(0, "B", 500, 2, True, "", 5)

The last parameter is the fill or kill delay in seconds. You can supply a fractional value, eg. 0.5 for half a second delay.
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby Tradyann » Tue Feb 05, 2013 1:11 pm

Thanks Gary!
User avatar
Tradyann
 
Posts: 139
Joined: Thu Dec 15, 2011 7:13 pm


Return to Help

Who is online

Users browsing this forum: Google [Bot] and 18 guests

Sports betting software from Gruss Software


The strength of Gruss Software is that it’s been designed by one of you, a frustrated sports punter, and then developed by listening to dozens of like-minded enthusiasts.

Gruss is owned and run by brothers Gary and Mark Russell. Gary discovered Betfair in 2004 and soon realised that using bespoke software to place bets was much more efficient than merely placing them through the website.

Gary built his own software and then enhanced its features after trialling it through other Betfair users and reacting to their improvement ideas, something that still happens today.

He started making a small monthly charge so he could work on it full-time and then recruited Mark to help develop the products and Gruss Software was born.

We think it’s the best of its kind and so do a lot of our customers. But you can never stand still in this game and we’ll continue to improve the software if any more great ideas emerge.