1. A method including:
receiving by a computing device including a processor a trade order including a trade order quantity of a tradeable object for a user;
calculating by the computing device a first allocation percentage for a first broker and a second allocation percentage for a second broker;
calculating by the computing device a first target net position for the first broker based on the first allocation percentage and a second target net position for the second broker based on the second allocation percentage;
allocating by the computing device a first portion of the trade order quantity to the first broker based on a first net position of the user at the first broker related to the tradeable object and the first target net position;
allocating by the computing device a second portion of the trade order quantity to the second broker based on a second net position of the user at the second broker related to the tradeable object and the second target net position; and
sending by the computing device a first message to the first broker and a second message to the second broker, wherein the first message includes the first portion of the trade order quantity, wherein the second message includes the second portion of the trade order quantity.
2. The method of claim 1, further including receiving by the computing device a routing rule, wherein the first portion and the second portion of the trade order quantity are allocated further based on the routing rule.
3. The method of claim 1, wherein the first message is a first trade order, wherein the second message is a second trade order.
4. The method of claim 1, further including checking by the computing device that a sum of the first portion and the second portion of the trade order quantity is not greater than the trade order quantity.
5. A non-transitory computer readable storage medium including instructions that, when executed, cause a computing device to at least:
receive a trade order including a trade order quantity of a tradeable object for a user;
calculate a first allocation percentage for a first broker and a second allocation percentage for a second broker;
calculate a first target net position for the first broker based on the first allocation percentage and a second target net position for the second broker based on the second allocation percentage;
allocate a first portion of the trade order quantity to the first broker based on a first net position of the user at the first broker related to the tradeable object and the first target net position;
allocate a second portion of the trade order quantity to the second broker based on a second net position of the user at the second broker related to the tradeable object and the second target net position; and
send a first message to the first broker and a second message to the second broker, wherein the first message includes the first portion of the trade order quantity, wherein the second message includes the second portion of the trade order quantity.
6. The computer readable storage medium of claim 5, further including instructions that, when executed, cause the computing device to receive a routing rule, wherein the first portion and the second portion of the trade order quantity are allocated further based on the routing rule.
7. The computer readable storage medium of claim 5, wherein the first message is a first trade order, wherein the second message is a second trade order.
8. The computer readable storage medium of claim 5, further including instructions that, when executed, cause the computing device to check that a sum of the first portion and the second portion of the trade order quantity is not greater than the trade order quantity.
9. The method of claim 1, further including:
calculating by the computing device a total net position of the user related to the tradeable object, wherein the total net position includes the first net position of the user at the first broker related to the tradeable object and the second net position of the user at the second broker related to the tradeable object; and
calculating by the computing device a total expected position by adding the total net position to the trade order quantity, wherein the first target net position for the first broker is calculated by multiplying the first allocation percentage for the first broker by the total expected position, wherein the second target net position for the second broker is calculated by multiplying the second allocation percentage for the second broker by the total expected position.
10. The method of claim 9, wherein the first portion of the trade order quantity is allocated by subtracting the first net position of the user at the first broker related to the tradeable object from the first target net position when a direction for the trade order is the same as a direction of the total net position.
11. The method of claim 9, wherein the second portion of the trade order quantity is allocated by subtracting the second net position of the user at the second broker related to the tradeable object from the second target net position when a direction for the trade order is the same as a direction of the total net position.
12. The computer readable storage medium of claim 5, further including instructions that, when executed, cause the computing device to:
calculate a total net position of the user related to the tradeable object, wherein the total net position includes the first net position of the user at the first broker related to the tradeable object and the second net position of the user at the second broker related to the tradeable object; and
calculate a total expected position by adding the total net position to the trade order quantity, wherein the first target net position for the first broker is calculated by multiplying the first allocation percentage for the first broker by the total expected position, wherein the second target net position for the second broker is calculated by multiplying the second allocation percentage for the second broker by the total expected position.
13. The computer readable storage medium of claim 12, wherein the first portion of the trade order quantity is allocated by subtracting the first net position of the user at the first broker related to the tradeable object from the first target net position when a direction for the trade order is the same as a direction of the total net position.
14. The computer readable storage medium of claim 12, wherein the second portion of the trade order quantity is allocated by subtracting the second net position of the user at the second broker related to the tradeable object from the second target net position when a direction for the trade order is the same as a direction of the total net position.
The claims below are in addition to those above.
All refrences to claim(s) which appear below refer to the numbering after this setence.
1. A braking mechanism for a nail gun, the nail gun comprising a nail driving track, a magazine and an inner trigger for controlling a nail driving motion of the nail gun, the braking mechanism comprising;
a safety rod;
a sliding member slidably received in the magazine, the sliding member is configured for pushing nails received in the magazine into the nail driving track;
a swing stem resiliently and pivotally mounted on the sliding member, the swing stem comprising a braking portion, a straight path being defined between the safety rod and the barking portion, a protrusion being formed on the braking portion; and
a guide plate disposed at an end of the straight path, the guide plate being configured for guiding the protrusion such that the braking portion moves away from the straight path, the swing stem is capable of sliding off the guide plate as the sliding member moves to the nail driving track such that the braking portion moves back to the straight path to block the safety rod thereby braking shooting action of the nail gun.
2. The braking mechanism as claimed in claim 1, wherein a torque spring is disposed between the sliding member and the swing stem such that the swing stem is resiliently and pivotally mounted on the sliding member.
3. The braking mechanism as claimed in claim 1, wherein a distance between the braking portion and the ear portion is less than a distance between the sliding member and the nail driving track.
4. The braking mechanism as claimed in claim 1, wherein the guide plate is located at a side of the nail driving track.
5. The braking mechanism as claimed in claim 1, wherein the guide plate includes an outer slope surface configured for guiding the swing stem to move away from straight path.
6. The braking mechanism as claimed in claim 5, wherein the guide plate includes an outer plain surface extending from the outer slope surface, the outer plain surface is configured for guiding the swim stem such that the braking portion keeps away from the straight path.
7. The braking mechanism as claimed in claim 1, wherein the guide plate includes an inner slope surface configured for guiding the protrusion to get across the guide plate when the swing stem goes back to its original position from a position at which the swing stem blocks the safety rod.
8. The braking mechanism as claimed in claim 7, wherein the guide plate includes an inner plain surface extending from the inner slope surface, the inner plain surface being configured for guiding the protrusion to the inner slope surface when the swing stem goes back to its original position from a position at which the swing stem blocks the safety rod.
9. The braking mechanism as claimed in claim 1, wherein the safety rod includes an ear portion, and the straight path is defined between the ear portion and the braking portion so that the braking portion is capable of blocking the ear portion.