Buying and selling a security at different exchanges, change of listing

Yes but you might have to pay a fee for changing the listing.

The one it is traded in under the given ticket at the given exchange.

You will have to pay to either one. SQ must be more expensive than IB.