Proposal requests without subscription can't be repeated
You can only send a specific proposal request once. If you try to send it again some time later, you'll get the AlreadySubscribedOrLimit
error even if you didn't subscribe to it.
Open the API playground, go to the Proposal request, send the sample request it as is, wait some time, send it again and you'll see the error.
Comments
@fonda please note that default behaviour is it subscribes you by default
presence of
id
indicates that its subscribed and as per descriptionNote that certain contracts, such as tick trades on Random Indices, have constant prices and hence won't stream.
it will only stream when price changeCan you please double-check that? Because your 11 Jan pinned thread titled
subscribe: 0 in api call to be deprecated soon (v3)
says otherwise.My experimentation also shows that by default you are NOT subscribed, yet you still receive the
id
field.subscribe
field. You'll receive a single response (wait for a minute afterwards), which WILL have anid
field."subscribe": 1
. You will start receiving streaming responses."subscribe": 0
. You will receive anInputValidationFailed
error since support for subscribe 0 was removed@fonda Sorry my bad, I confused it with
tick
behaviour, yes you are correct (cross verified in code as well). You get an id as that id is used to purchase contract so it should be available for bothsubscribe: 1 subscribe: 0
.So if you want to send proposal again with same parameters then use
forget: id
first to forget first proposal and then send sameproposal
again