Which preposition to use with captaincy

of Occurrences 10%

He was to have had the captaincy of the first one hundred men he raised.

in Occurrences 9%

It was looked upon as another step in the ladder of gratitude when Wesley carried off the captaincy in the Acredale company, though everybody knew that young Boone was not in any way so well fitted for the "straps" as Jack.

Which preposition to use with  captaincy